示例#1
0
 private void Update()
 {
     if (player.GetLeftPressed() || player.GetRightPressed() || player.GetJumpPressed() || player.GetHidePressed())
     {
         CancelInvoke("RestarGame");
     }
     else
     {
         //print("Invoke");
         Invoke("RestarGame", 120f);
     }
 }