コード例 #1
0
        protected virtual void Start()
        {
            Relay = GetComponent <SelectableInputRelay>();

            if (Relay == null)
            {
                throw MoeTools.ExceptionTools.Templates.MissingDependacny <SelectableInputRelay, QuitRelayHook>(this.name);
            }

            Relay.Register(Action);
        }
コード例 #2
0
        public virtual void RegisterTransition(SelectableInputRelay controller, Menu target)
        {
            var transition = new Transition(controller, target);

            RegisterTransition(transition);
        }
コード例 #3
0
 public Transition(SelectableInputRelay controller, Menu target)
 {
     this.relay  = controller;
     this.target = target;
 }