Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     My_aniT = GetComponent <Animator>();
     shoo    = GameObject.Find("shoot").GetComponent <shoot>();
     ig      = GameObject.Find("inGameManager").GetComponent <InGame>();
     atk     = killrange.GetComponent <attackrange>();
     r2d     = GetComponent <Rigidbody2D>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     My_aniT    = GetComponent <Animator>();
     ig         = GameObject.Find("inGameManager").GetComponent <InGame>();
     atk        = killrange.GetComponent <attackrange>();
     r2d        = GetComponent <Rigidbody2D>();
     currenTime = coolingTime;
 }