예제 #1
0
 void OnDisable()
 {
     CleanUp();
     m_Instance = null;
     CancelInvoke("RefreshMountLeftTime");
     GameManager.gameManager.ActiveScene.HideFakeObj();
 }
예제 #2
0
    void OnEnable()
    {
        m_Instance = this;
        m_nUpdateLeftTimeInterval = 60;
        InvokeRepeating("RefreshMountLeftTime", 0.5f, 1.0f);

        InitMountList();
        RefreshInfo();
    }
예제 #3
0
    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);
        }
    }
예제 #4
0
 void OnDestroy()
 {
     CleanUp();
     m_Instance = null;
 }
예제 #5
0
 void Awake()
 {
     m_Instance = this;
 }