Exemple #1
0
    public void Update(uint elapsed)
    {
        mLastMillionSec = (mLastMillionSec + elapsed) % uint.MaxValue;

        if ((mLastMillionSec - mOneSecNum) >= 1000)
        {
            mOneSecNum = mLastMillionSec;
            //Pdm.SubEggTimeSeconds(

            EggType et = EggType.Normal;
            for (int i = 0; i < 3; i++)
            {
                et = (EggType)(i + 1);

                int sec = GetSecondsByEggId(et);

                if (sec <= 0)
                {
                    if (et == EggType.Normal)
                    {
                        CityFormManager.SetRedPointActive("egg", true);
                    }
                    continue;
                }

                Pdm.SubEggTimeSeconds(et);

                if (et == EggType.Normal)
                {
                    CityFormManager.SetRedPointActive("egg", false);
                }
            }
        }
    }
Exemple #2
0
    private void onTitleBtnClick()
    {
        WindowManager.Instance.OpenUI("title");

        TitleModule tm = ModuleManager.Instance.FindModule <TitleModule>();

        tm.IsShowRedPoint = false;
        mTitleRedPoint.SetActive(false);
        CityFormManager.SetRedPointActive("beibao", false);
    }
Exemple #3
0
 void OnGetNewTitle()
 {
     CityFormManager.SetRedPointActive("beibao", true);
     IsShowRedPoint = true;
 }