Esempio n. 1
0
 public ShootingState(Transform pCharacter, Transform pTarget, Torreta pTorreta)
 {
     this.transform = pCharacter;
     target         = pTarget;
     _torreta       = pTorreta;
 }
Esempio n. 2
0
 private void Awake()
 {
     torreta = GetComponentInParent <Torreta>();
     daño    = torreta.damage;
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     torreta = GameObject.FindObjectOfType <Torreta>();
 }