/********** Custom Methods **********/ private void HookToMainToolBar() { UISprite _demandBack = (UISprite)oGameNativeUI.FindUIComponent("DemandBack"); oDemandTriggerButton = _demandBack.AddUIComponent <RCIButton>(); CreateButton(ref oDemandTriggerButton); }
private void CreateButton(ref RCIButton btn) { btn.eventClick += button_eventClick; }