void Start() { shoot = false; protect = false; reload = false; counter = GameObject.Find("Canvas").GetComponent <CountDownTimer>().currentTime; gun_animation = gun.transform.GetChild(0).GetComponent <Animator>(); opponent_action = opponent.GetComponent <Acction>(); shootSound = gun.GetComponent <AudioSource>(); shieldSound = shield.GetComponent <AudioSource>(); reloadSound = ammo.GetComponent <AudioSource>(); }
public void Add_action(Acction acction) //dodawanie zadanie { U_acctionsqueue.Add(acction); }