Esempio n. 1
0
 void FixedUpdate()
 {
     if (GameManager.gameState == GameState.Running)
     {
         bool res = GhostManager.GetNextPosition(out readPos, out readRot);
         if (!res)
         {
             Destroy(gameObject);
         }
     }
 }