Example #1
0
 void Start()
 {
     elapsedTime = 0.0f;
     totalTarget = 0;
     Target[] stageTargets = gameObject.GetComponentsInChildren <Target>(true);
     foreach (Target target in stageTargets)
     {
         target.Activation(false);
         globalControl.addTargetCount();
     }
     timeBar.GetComponent <RectTransform>().sizeDelta = new Vector2(0, 3);
 }