Beispiel #1
0
    void NewMatch()
    {
        if (StrategyManager != null)
        {
            StrategyManager.Dispose();
        }

        StrategyManager = new StrategyManager();
        GlobalMatchInfo = new MatchInfo();

        Event.Register(Event.EventType1.Goal, delegate(object obj)
        {
            bool who = (bool)obj;
            if (who)
            {
                GlobalMatchInfo.Score.BlueScore++;
            }
            else
            {
                GlobalMatchInfo.Score.YellowScore++;
            }
        });
        //LoadInfo.SaveInfo("StrategyServer/dlltest/debug/dlltest.dll", "StrategyServer/dll2.dll");
    }