Exemplo n.º 1
0
 void IsPause()
 {
     if (GUI.Button(new Rect(Screen.width / 2 - 350, Screen.height / 2 + 100, 150, 50), "Pause", MyButtonStyle))
     {
         if (moveable.cn_move == 0)
         {
             action.pause();
             moveable.cn_move = 1;
         }
     }
     else if (GUI.Button(new Rect(Screen.width - Screen.width / 2, Screen.height / 2 + 100, 150, 50), "Continue", MyButtonStyle))
     {
         if (moveable.cn_move == 1)
         {
             action.Coninu();
             moveable.cn_move = 0;
         }
     }
 }