コード例 #1
0
ファイル: BattleModel.cs プロジェクト: TOPPON/Ateam_team1
        //---------------------------------------------------
        // AddAISystem
        //---------------------------------------------------
        public void AddAISystem(Define.Battle.TEAM_TYPE type, BaseBattleAISystem aiSystem, string name)
        {
            _AISystemList.Add(type, aiSystem);
            _TeamNameList.Add(type, name);

            _observable.PushEvent("EVENT_SetTeamName", Common.CreateHashTable("teamType", type, "name", name));
        }
コード例 #2
0
ファイル: BattleSystem.cs プロジェクト: TOPPON/Ateam_team1
        //---------------------------------------------------
        // CreateAISystem
        //---------------------------------------------------
        void CreateAISystem()
        {
            for (int i = 0; i < _AISystemList.Count; i++)
            {
                Define.Battle.TEAM_TYPE teamType = (Define.Battle.TEAM_TYPE)i;

                BaseBattleAISystem system = Instantiate(_AISystemList[i]).GetComponent <BaseBattleAISystem>();
                system.Initialize(teamType, this);
                _battleModel.AddAISystem(teamType, system, TeamNameList[i]);
            }
        }