void OnDestroy() { DestroyPartnerFakeObj(); m_Instance = null; if (GameManager.gameManager.ActiveScene != null) { GameManager.gameManager.ActiveScene.HideFakeObj(); } }
public string GetCurEquipIcon(int indexSlot) { if (OtherRoleViewLogic.Instance()) { int index = OtherRoleViewLogic.Instance().GetIndexByEquipSlot(indexSlot); return(OtherRoleViewLogic.Instance().GetEquipSlotIcon(index)); } return(""); }
public static void OnShowOtherRoleVirew(bool bSuccess, object param) { if (!bSuccess) { LogModule.ErrorLog("load OtherRoleViewLogic error"); return; } if (null != OtherRoleViewLogic.Instance()) { OtherRoleViewLogic.Instance().ShowOtherRoleView(); } }
void Awake() { m_Instance = this; }