Пример #1
0
    void CheckMovement()
    {
        if (PlayerControllerState.GetCurrentState().ThumbSticks.Left.X != 0 ||
            PlayerControllerState.GetCurrentState().ThumbSticks.Left.Y != 0 ||
            PlayerControllerState.ButtonDownA ||
            respawnIdleTimer <= 0)
        {
            PState = PlayerState.Alive;

            ChosenSpawn.SetActive(true);
            SpawnZone.SetActive(false);

            CancelInvoke("CheckMovement");
            respawnIdleTimer = RespawnIdleTime;
        }
    }