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; } }
IEnumerator TurnOffallIndicators() { yield return(new WaitForSeconds(1f)); Indicator_1.GetComponent <MeshRenderer>().material = Indicator_2.GetComponent <MeshRenderer>().material = Indicator_3.GetComponent <MeshRenderer>().material = RotatorOff; }