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>(); } }
void Awake() { singleton = this; playerHUDs = new PlayerHUDScript[4]; }