Inheritance: 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
ファイル: SampleLogic.cs プロジェクト: meta-42/uEasyKit
        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();
        }