Esempio n. 1
0
    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>();
    }
Esempio n. 2
0
 public void Add_action(Acction acction) //dodawanie zadanie
 {
     U_acctionsqueue.Add(acction);
 }