protected virtual void Start() { Relay = GetComponent <SelectableInputRelay>(); if (Relay == null) { throw MoeTools.ExceptionTools.Templates.MissingDependacny <SelectableInputRelay, QuitRelayHook>(this.name); } Relay.Register(Action); }
public virtual void RegisterTransition(SelectableInputRelay controller, Menu target) { var transition = new Transition(controller, target); RegisterTransition(transition); }
public Transition(SelectableInputRelay controller, Menu target) { this.relay = controller; this.target = target; }