Beispiel #1
0
        public OnClickAction(Button button, Action onClickAction)
        {
            mOnClickAction = onClickAction;
            button.onClick.AddListener(() =>
            {
                ActionRecorder.RecordAction(this);
                Execute();
            });

            Name = button.name;

            this.AddTo(button);

            ActionMgr.Push(this);
        }
Beispiel #2
0
 public void Dispose()
 {
     ActionMgr.Pop(this);
     Name           = null;
     mOnClickAction = null;
 }