Пример #1
0
 // Use this for initialization
 void Start()
 {
     gm = GameObject.FindObjectOfType <GameManager>();
     turretController = GetComponent <turretController>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     turCorntroller = GetComponent <turretController>();
     turShoot       = GetComponent <turretShooter>();
 }