Beispiel #1
0
    void Start()
    {
        enemyHealthScript = GetComponent <EnemyHealthScr>();
        currentAmmo       = totalAmmo;

        //function called, after x seconds, then repeats every y seconds
        InvokeRepeating("MechShootsMissile", missileTime, missileTime);
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     //Camera.main
     COMPONENT_STATUS = this;
     EHS   = GetComponent <EnemyHealthScr>();
     MAS   = GetComponent <MechAudioScr>();
     SHAKE = Camera.main?.GetComponent <ShakeCamera>();
     //StartCoroutine(damageWait(timeBetweenDiceRolls));
     countDown = timeBetweenDiceRolls;
     //CountDownText
     for (int i = 0; i < compSliders.Count; i++)
     {
         CompStatusValue[i].text = compSliders[i].value.ToString();
     }
 }