private void Start()
 {
     rotateBtn   = transform.SearchforChild("c_btn_RAndS");
     mirroredBtn = transform.SearchforChild("c_btn_mirror");
     closeBtn    = transform.SearchforChild("c_btn_close");
     box         = transform.parent.parent.parent.SearchforChild("c_box");
     tools       = transform.SearchforChild("tools");
     toolCounts  = tools.childCount;
     isControl   = true;
     EventTriggerManager.GetEventTriggerManager(rotateBtn.gameObject).AddPDEvent(RotateEventDown);
     EventTriggerManager.GetEventTriggerManager(rotateBtn.gameObject).AddPUEvent(RotateEventUp);
     EventTriggerManager.GetEventTriggerManager(mirroredBtn.gameObject).AddPUEvent(mirrorEvent);
     EventTriggerManager.GetEventTriggerManager(closeBtn.gameObject).AddPUEvent(closeEvent);
     EventTriggerManager.GetEventTriggerManager(gameObject).AddPUEvent(ActiveTool);
     EventTriggerManager.GetEventTriggerManager(box.gameObject).AddPUEvent(InActiveTool);
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     EventTriggerManager.GetEventTriggerManager(gameObject).AddClickEvent(CallSetting);
 }