Пример #1
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();
     }
 }
Пример #2
0
 void Start()
 {
     CSS       = ComponentStatusScr.COMPONENT_STATUS;
     canRepair = false;
 }