Skip to content

Commit

Permalink
Merge pull request #118 from Double-Fine-Game-Club/spawn-powerui
Browse files Browse the repository at this point in the history
Spawn powerui
  • Loading branch information
lightsoda authored Apr 26, 2017
2 parents 1cf1117 + 2d7da51 commit c10ab24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/scripts/LoadAssets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ public IEnumerator BeginPlaying()
spawner.AddComponent<BallSpawner>().ballPrefab = NetworkManager.singleton.spawnPrefabs[0];// Don't like this at all...
spawner.AddComponent<ResetBallUI>();

if (GameObject.FindGameObjectsWithTag("Score").Length <= 0)
//Create the power UI for the players
const string powerUIPrefab = "entities/powers/PowerUI";
Instantiate(Resources.Load(powerUIPrefab));

if (GameObject.FindGameObjectsWithTag("Score").Length <= 0)
{
GameObject scoreManager = GameObject.Instantiate(NetworkManager.singleton.spawnPrefabs[1]);

Expand Down

0 comments on commit c10ab24

Please sign in to comment.