Unity
14
Вклад в тег
void Start()
{
posbtnright = rightbtn.transform.position.y;
posbtnleft = leftbtn.transform.position.y;
posJumpBtn = jumpbtn.transform.position.y;
<b>rb = GetComponent();
anim = GetComponent();</b>
}
rb = GetComponent<RigidBody2D>();
anim = GetComponent<Animator>();