Exemplo n.º 1
0
    protected void ResetAll()
    {
        this.status        = MushroomHitStatus.None;
        this.gameTime      = 0f;
        this.gameCD        = 0f;
        this.accelStage    = 0;
        this.accelCD       = 0f;
        this.accelConfig   = null;
        this.isMaxAccel    = false;
        this.newMushroomCD = 0f;
        this.score         = 0;
        this.combo         = 0;
        this.comboMissCD   = 0f;
        this.m_ComboControl.SetCombo(false, 0, false);
        this.plantTimeMushroomCount = 0;
        this.refreshGameTimeCount   = 0f;
        this.SetGameTimeText();
        this.ClearPlantList();
        this.m_RestoreList.Clear();
        this.m_MushroomKillList.Clear();
        this.m_MushroomKillList.Add(0, 0);
        List <MoGuBiao> dataList = DataReader <MoGuBiao> .DataList;

        using (List <MoGuBiao> .Enumerator enumerator = dataList.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                MoGuBiao current = enumerator.get_Current();
                this.m_MushroomKillList.Add(current.id, 0);
            }
        }
    }
Exemplo n.º 2
0
 protected void GoEnd()
 {
     this.status = MushroomHitStatus.End;
     this.SetGameTimeText();
     EventDispatcher.Broadcast(EventNames.MushroomHitEnd);
     MushroomHitManager.Instance.SendHitMouseSettleReq(this.score, (int)this.gameTime);
 }
Exemplo n.º 3
0
 protected void GoReady()
 {
     this.ResetAll();
     this.status = MushroomHitStatus.Ready;
     FXSpineManager.Instance.PlaySpine(3626, this.m_SpineRoot, "MushroomHitUI", 2001, null, "UI", 0f, 0f, 1f, 1f, false, FXMaskLayer.MaskState.None);
     FXSpineManager.Instance.PlaySpine(3627, this.m_SpineRoot, "MushroomHitUI", 2000, new Action(this.GoStart), "UI", 0f, 0f, 1f, 1f, false, FXMaskLayer.MaskState.None);
 }
Exemplo n.º 4
0
    protected void GoStart()
    {
        this.status               = MushroomHitStatus.Start;
        this.gameCD               = this.defaultTime;
        this.gameTime             = 0f;
        this.refreshGameTimeCount = 0f;
        this.accelStage           = 1;
        this.accelConfig          = DataReader <ShuaXinPinLv> .Get(this.accelStage);

        EventDispatcher.Broadcast <ShuaXinPinLv>(EventNames.MushroomAccel, this.accelConfig);
        this.accelCD       = 0f;
        this.isMaxAccel    = false;
        this.newMushroomCD = 0f;
        this.SetGameTimeText();
    }
Exemplo n.º 5
0
 protected void ReStart()
 {
     this.status = MushroomHitStatus.Start;
 }
Exemplo n.º 6
0
 protected void GoPause()
 {
     this.status = MushroomHitStatus.Pause;
 }