Esempio n. 1
0
        public override bool Interact(int x, int y, Interaction interaction)
        {
            if (currentAnimation.Interact(x, y, interaction))
            {
                switch (interaction)
                {
                case Interaction.Eye:
                    Module.Look?.Invoke();
                    break;

                case Interaction.Mouth:
                    Module.Talk?.Invoke();
                    break;

                case Interaction.Hand:
                    Module.Grab?.Invoke();
                    break;

                case Interaction.Move:
                default:
                    return(false);
                }

                return(true);
            }

            return(false);
        }