Exemple #1
0
 /// <summary>
 /// Overriden method for when scripts starts
 /// </summary>
 protected override void Start()
 {
     base.Start();
     action           = GetComponentInChildren <WheelAction>();
     toggle           = GetComponentInChildren <LightToggle>();
     outAnglePrevious = action.outAngle;
     audioSource      = GetComponent <AudioSource>();
 }
Exemple #2
0
 /// <summary>
 /// Method for when scripts starts
 /// </summary>
 protected void Start()
 {
     action = GetComponentInChildren <WheelAction>();
     toggle = GetComponentInChildren <LightToggle>();
     //Tests if game needs to start automatically
     if (autoStart)
     {
         StartGameSequence();
     }
 }