Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     rgbd2 = gameObject.GetComponent <Rigidbody2D>();
     anim  = gameObject.GetComponent <Animator>();
     u2dc  = gameObject.GetComponent <Unity2DController>();
 }
Пример #2
0
 void Start()
 {
     u2dc = gameObject.GetComponent <Unity2DController>();
 }