Esempio n. 1
0
    /// <summary>
    /// 新比赛开始
    /// 重设场景,比分清空,裁判历史数据清空
    /// </summary>
    public void StartMatch()
    {
        StartedMatch = false;

        ObjectManager.SetDefaultPostion();
        GlobalMatchInfo.Score    = new MatchScore();
        GlobalMatchInfo.PlayTime = 0;
        GlobalMatchInfo.Referee  = new Referee();

        StrategyManager.CheckReady_ex();
        StrategyManager.BeginBlue(GlobalMatchInfo);
        StrategyManager.BeginYellow(GlobalMatchInfo);

        StartedMatch = true;
        Event.Send(Event.EventType0.MatchStart);
    }