Fixed missing bgm
This commit is contained in:
parent
4c40b6b165
commit
98816e4f5b
1 changed files with 5 additions and 3 deletions
|
@ -283,16 +283,18 @@ public class GameController : MonoBehaviour {
|
|||
StartObjective goal = new StartObjective(start, playerPrefab);
|
||||
start.SetObjective(goal);
|
||||
start.OnPlayerEnter(player);
|
||||
player = goal.GetPlayer();
|
||||
player = goal.GetPlayer();
|
||||
cam.GetComponent<AudioControl>().LevelBgm();
|
||||
if ( player != null ) {
|
||||
cam.GetComponent<CameraControl>().SetFollow(player.gameObject);
|
||||
GetUI().InitHealthController(player);
|
||||
GetUI().InitBrakeController(player);
|
||||
} else {
|
||||
Debug.Log("No Player spawned!");
|
||||
}
|
||||
}
|
||||
|
||||
finish.SetObjective(new FinishObjective(finish));
|
||||
cam.GetComponent<AudioControl>().LevelBgm();
|
||||
|
||||
}
|
||||
|
||||
private void Running() {
|
||||
|
|
Loading…
Add table
Reference in a new issue