void OnDisable() { CleanUp(); m_Instance = null; CancelInvoke("RefreshMountLeftTime"); GameManager.gameManager.ActiveScene.HideFakeObj(); }
void OnEnable() { m_Instance = this; m_nUpdateLeftTimeInterval = 60; InvokeRepeating("RefreshMountLeftTime", 0.5f, 1.0f); InitMountList(); RefreshInfo(); }
public void MountItemClick() { if (null == gameObject) { return; } m_ItemActive.SetActive(true); m_ItemNormal.SetActive(false); m_ItemName.color = highLightColor; if (null != MountAndFellowLogic.Instance()) { MountAndFellowLogic.Instance().MountItemClick(m_MountID); } //added by mawenbin //获取新坐骑,红点提示,点击隐藏红点 m_RemindPoint.SetActive(false); if (null != GameManager.gameManager.PlayerDataPool) { GameManager.gameManager.PlayerDataPool.m_objMountParam.ClearMountRemindFlag(MountID); } }
void OnDestroy() { CleanUp(); m_Instance = null; }
void Awake() { m_Instance = this; }