public void InitializeCombat() { playerCharacters = new BattleActor[pcData.Length]; for (int i = 0; i < pcData.Length; ++i) { GameObject playerActor = Instantiate(battleActorPrefab, playerActorParent); playerActor.transform.position = playerPos[i]; playerCharacters[i] = playerActor.GetComponent <BattleActor>(); playerCharacters[i].InjectData(pcData[i]); if (player != null) { var ptc = player.GetComponent <PlayerBattleController>(); playerControllers.Add(ptc); playerCharacters[i].SetTacticalController(ptc); } } SpawnMonsters(); battleTimer = GetComponent <BattleTimer>(); battleTimer.enabled = true; battleHUD.AddActorsToStatusBar(new List <BattleActor>(playerCharacters)); }