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