public bool PlayerInteraction(Facing player_direction)
        {
            if (opened || player_direction != Facing.UP)
            {
                return(false);
            }
            opened = true;
            _treasure.GetTreasure();

            SetFrame(_curFrame + 1);
            _preset.Frame = -1;
            return(true);
        }
Beispiel #2
0
        public virtual bool PlayerInteraction(Facing player_direction)
        {
            if (opened || player_direction != Facing.UP)
            {
                return(false);
            }
            opened = true;
            GlobalState.CurrentMinimap.RemoveInterest();
            _treasure.GetTreasure();

            SetFrame(_curAnim.Frame + 1);
            _preset.Activated = true;
            return(true);
        }