Пример #1
0
 public void Execute(Interactuable interactuable)
 {
     MenuMB.Instance.hide (true);
     if (interactuable.Interacted() == InteractuableResult.REQUIRES_MORE_INTERACTION) {
         this.next_interaction = interactuable;
     }
 }
Пример #2
0
 public void Execute(Interactuable interactuable)
 {
     MenuMB.Instance.hide(true);
     if (interactuable.Interacted() == InteractuableResult.REQUIRES_MORE_INTERACTION)
     {
         this.next_interaction = interactuable;
     }
 }
Пример #3
0
 public bool Execute(Interactuable interactuable)
 {
     MenuMB.Instance.hide(true);
     if (interactuable.Interacted() == InteractuableResult.REQUIRES_MORE_INTERACTION)
     {
         this.next_interaction = interactuable;
         return(true);
     }
     return(false);
 }
Пример #4
0
        private bool InteractWith(Interactuable interacted)
        {
            bool exit = false;

            next_interaction = null;
            switch (interacted.Interacted())
            {
            case InteractuableResult.DOES_SOMETHING:
                exit = true;
                break;

            case InteractuableResult.REQUIRES_MORE_INTERACTION:
                exit             = true;
                next_interaction = interacted;
                break;

            case InteractuableResult.IGNORES:
            default:
                break;
            }
            return(exit);
        }
Пример #5
0
 private bool InteractWith(Interactuable interacted)
 {
     bool exit = false;
     next_interaction = null;
     switch (interacted.Interacted ()) {
         case InteractuableResult.DOES_SOMETHING:
             exit = true;
             break;
         case InteractuableResult.REQUIRES_MORE_INTERACTION:
             exit = true;
             next_interaction = interacted;
             break;
         case InteractuableResult.IGNORES:
         default:
             break;
     }
     return exit;
 }