Example #1
0
    public override void WndStart()
    {
        base.WndStart();
        int countDown = ConfigM.GetAttackCountDown(BattleEnvironmentM.GetBattleEnvironmentMode());

        SetAttackTime(countDown);
        AddEvents();
        StartAttackCountDown();
    }
Example #2
0
    void StartAttackCountDown()
    {
        if (MyHead.HourGlassLeftTime == null)
        {
            NGUIUtil.DebugLog("CombatCountDownWnd.cs->HourGlassLeftTime 未设置");
            return;
        }

        int countDown = ConfigM.GetAttackCountDown(BattleEnvironmentM.GetBattleEnvironmentMode());

        if (countDown <= 0)
        {
            NGUIUtil.DebugLog("CombatCountDownWnd.cs->s_config type=11 数据配置有问题");
            return;
        }
        m_iLimitCounter = countDown;
        InvokeRepeating("SetLeftTime", 1f, 1f);
    }