Exemple #1
0
    public override void OnInteraction(InteractableElement ie, Player p)
    {
        Lever l = ie as Lever;

        if (l != null)
        {
            if (currentDiff == eDifficulty.Easy)
            {
                currentDiff = eDifficulty.Normal;
            }
            else // (currentDiff == eDifficulty.Normal)
            {
                currentDiff = eDifficulty.Easy;
                l.SetState(Lever.eLeverState.Left);
            }

            //OnDifficultyChanged(currentDiff);
            UpdateText();
            OnDifficultyChanged(currentDiff);
        }
    }