예제 #1
0
 void Update()
 {
     if (GM.GetStartTime() < 2F)
     {
         middle.color = new Color32(255, 0, 0, 255);
     }
     else
     {
         middle.color = new Color32(0, 255, 0, 255);
     }
 }
예제 #2
0
 void GetPlayersLife()//Get player's life function
 {
     Print = GM.GetStartTime().ToString();
     GetComponent <Text>().text = Print;//change print text
 }
예제 #3
0
 void Update()
 {
     slider.value = GM.GetStartTime();
 }