Пример #1
0
    public void Action(PlayerControllerScript player)
    {
        if (!unlocked)
        {
            player.OpenRiddle(riddle, awnser);

            if (doorCheckInProgress != null)
            {
                StopCoroutine(doorCheckInProgress);
            }

            doorCheckInProgress = StartCoroutine(DoorCheck(player));
        }
        else
        {
            player.transform.position = teleportPosition;
        }
    }