Exemplo n.º 1
0
        protected virtual void Start()
        {
            Relay = GetComponent <SelectableInputRelay>();

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

            Relay.Register(Action);
        }
Exemplo n.º 2
0
            public virtual void Register(Menu current)
            {
                relay.Register(() =>
                {
                    current.Close();

                    if (target)
                    {
                        target.Show();
                    }
                });
            }