Ejemplo n.º 1
0
    public void TrySettingRespawnPoint()
    {
        SceneData sd = GetSceneData();

        if (sd == null)
        {
            return;
        }

        if (!sd.blockRespawning && !savedGameOnce && GetSceneData() != null)
        {
            this.savedGameOnce = true;
            this.respawnPoint  = new RespawnPoint(GlobalController.GetPlayerPos(), sd.sceneName);
        }
    }