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