Наследование: BehaviourBase
Пример #1
0
        protected override void OnCreated(GameObject rGo)
        {
            base.OnCreated(rGo);

            panel       = behaviour._scriptObject as SamplePanel;
            panel.logic = this;

            behaviour.AddClick(panel.buttonDialog.gameObject, OnClick);
            behaviour.AddClick(panel.buttonCroutine.gameObject, OnClick);
            behaviour.AddClick(panel.buttonPopups.gameObject, OnClick);
            behaviour.AddClick(panel.buttonWaiting.gameObject, OnClick);
            behaviour.AddClick(panel.buttonPanel.gameObject, OnClick);
            Enable();
        }
Пример #2
0
        protected override void OnCreated(GameObject rGo)
        {
            base.OnCreated(rGo);

            panel = behaviour.GetLShapObject() as SamplePanel;
            panel.logic = this;

            behaviour.AddClick(panel.buttonDialog.gameObject, OnClick);
            behaviour.AddClick(panel.buttonCroutine.gameObject, OnClick);
            behaviour.AddClick(panel.buttonPopups.gameObject, OnClick);
            behaviour.AddClick(panel.buttonWaiting.gameObject, OnClick);
            behaviour.AddClick(panel.buttonPanel.gameObject, OnClick);
            Enable();
        }