Пример #1
0
        void Awake()
        {
            singleton  = this;
            playerHUDs = new PlayerHUDScript[4];

            for (int i = 0; i < Kojima.GameController.s_ncurrentPlayers; i++)
            {
                GameObject newPlayerHUD = Instantiate(playerHUDPrefab) as GameObject;
                playerHUDs[i] = newPlayerHUD.GetComponent <PlayerHUDScript>();
            }
        }
Пример #2
0
 void Awake()
 {
     singleton  = this;
     playerHUDs = new PlayerHUDScript[4];
 }