コード例 #1
0
ファイル: BaseBattleObject.cs プロジェクト: darkzter/RTSGame
    public virtual void SetTeamID(int id)
    {
        teamID = id;

        RTSGame game = GameObject.FindObjectOfType <RTSGame> ().GetComponent <RTSGame> ();

        if (id >= 0 && id < game.teamColorMaterial.Count)
        {
            for (int i = 0; i < teamColorPart.Count; i++)
            {
                teamColorPart [i].material = game.teamColorMaterial [id];
            }
        }
    }
コード例 #2
0
ファイル: HUD.cs プロジェクト: darkzter/RTSGame
 // Use this for initialization
 void Start()
 {
     game = GetComponent <RTSGame> ();
 }
コード例 #3
0
 public CampSystem(RTSGame RTS) : base(RTS)
 {
 }
コード例 #4
0
ファイル: IUserInterface.cs プロジェクト: Leon-56/Unity-RTS
 public IUserInterface(RTSGame RTS)
 {
     m_RTSGame = RTS;
 }
コード例 #5
0
 public StageSystem(RTSGame RTS) : base(RTS)
 {
 }
コード例 #6
0
 public SoldierInfoUI(RTSGame RTS) : base(RTS)
 {
 
 }
コード例 #7
0
 public EnemyKilledObserverUI(RTSGame rtsGame)
 {
     m_RTSGame = rtsGame;
 }
コード例 #8
0
ファイル: GameEventSystem.cs プロジェクト: Leon-56/Unity-RTS
 public GameEventSystem(RTSGame RTS) : base(RTS)
 {
     Initialize();
 }
コード例 #9
0
 public CharacterSystem(RTSGame RTS) : base(RTS)
 {
 }
コード例 #10
0
 public GamePauseUI(RTSGame RTS) : base(RTS)
 {
 }
コード例 #11
0
ファイル: CampInfoUI.cs プロジェクト: Leon-56/Unity-RTS
 public CampInfoUI(RTSGame RTS) : base(RTS)
 {
     Initialize();
 }
コード例 #12
0
 // 加入管理器
 public override void AddCharacterSystem(RTSGame RTS)
 {
     RTS.AddSoldier(m_BuildParam.NewCharacter as ISoldier);
 }
コード例 #13
0
ファイル: IGameSystem.cs プロジェクト: Leon-56/Unity-RTS
 public IGameSystem(RTSGame RTS)
 {
     m_RTSGame = RTS;
 }
コード例 #14
0
 public APSystem(RTSGame RTS) : base(RTS)
 {
 }
コード例 #15
0
 // 加入管理器
 public abstract void AddCharacterSystem(RTSGame RTS);
コード例 #16
0
ファイル: EnemyBuilder.cs プロジェクト: Leon-56/Unity-RTS
 public override void AddCharacterSystem(RTSGame RTS)
 {
     RTS.AddEnemy(m_BuildParam.NewCharacter as IEnemy);
 }
コード例 #17
0
ファイル: GameStateInfoUI.cs プロジェクト: Leon-56/Unity-RTS
 public GameStateInfoUI(RTSGame RTS) : base(RTS)
 {
 }
コード例 #18
0
 public AchievementSystem(RTSGame RTS) : base(RTS)
 {
     Initialize();
 }