Ejemplo n.º 1
0
    public void ActivateRoom()
    {
        if (_puzzleController == null)
        {
            return;
        }

        bool puzzleHasBeenActivated = _puzzleController.hasBeenActivated;

        if (puzzleHasBeenActivated)
        {
            _puzzleController.Activate();
        }
        else
        {
            if (_startPuzzleImmediately)
            {
                _puzzleController.Activate();
            }
        }
    }