Example #1
0
 void CheckforIndicators()
 {
     if (RotatorPower1 >= RotatorCharged / 3)
     {
         Indicator_1.GetComponent <MeshRenderer>().material = RotatorOn;
     }
     if (RotatorPower1 >= 2 * RotatorCharged / 3)
     {
         Indicator_2.GetComponent <MeshRenderer>().material = RotatorOn;
     }
     if (RotatorPower1 >= RotatorCharged)
     {
         Indicator_3.GetComponent <MeshRenderer>().material = RotatorOn;
     }
 }
Example #2
0
    IEnumerator TurnOffallIndicators()
    {
        yield return(new WaitForSeconds(1f));

        Indicator_1.GetComponent <MeshRenderer>().material = Indicator_2.GetComponent <MeshRenderer>().material = Indicator_3.GetComponent <MeshRenderer>().material = RotatorOff;
    }