Exemplo n.º 1
0
    public override void Interact()
    {
        base.Interact();

        if (isInteracted)
        {
            _puzzle.ActivatePuzzle();
        }
    }
Exemplo n.º 2
0
    override public void Interact()
    {
        bool isActive = true;

        for (int i = 0; i < _activators.Count; i++)
        {
            isActive = isActive && _activators[i].IsActivated;
        }
        if (!isActive)
        {
            //_reactions.SetReaction(_reactions.BeforeInteractionPhrase);

            _puzzle.ActivatePuzzle();
        }
        else
        {
            _isActivated = true;
            FindObjectOfType <Tile>().IsGoalAchived = true;
            // _reactions.SetReaction(_reactions.InteractionPhrase);
        }
    }