Exemplo n.º 1
0
 private void Awake()
 {
     instance = this;
 }
 void Start()
 {
     InvokeRepeating("checkForTarget", 0, 0.5f);
     turretShotScript = GetComponent <TurretShootBase> ();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     //Constantly checks for the closest target
     InvokeRepeating("CheckForTarget", 0, 0.5f);
     shotscript = GetComponent <TurretShootBase>();
 }