void Awake() { if (UI.MainUI.MainUIController.Instance.IsShowCommonTool) { CreatObjectToNGUI.InstantiateObj(CommonToolPrefab, transform); } m_instace = this; //MyUICamera = UICamera.currentCamera; }
new void OnPress(bool isPressed) { if (!IsCanDrag) { return; } base.OnPress(isPressed); if (dragTool.CanDrag) { //Background.ChangeSprite(isPressed?2:1); //SetSelectStatus(true); if (isPressed) { SoundManager.Instance.PlaySoundEffect("Sound_Button_Default"); PackInfo_V3 packInfo = MainUIController.Instance.GetPanel(UIType.Package) as PackInfo_V3; packInfo.containerPackList.UpdateSlotSelectStatus(this); packInfo.heroEquiptItemList.UpdateSelectStatus(this); OnViewAtbButtonClick(null); } } }
public void Init(PackInfo_V3 myParent) { this.MyParent = myParent; }
void OnDestroy() { m_instace = null; //TODO GuideBtnManager.Instance.DelGuideButton(m_guideBtnID); }