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);
|
StartObjective goal = new StartObjective(start, playerPrefab);
|
||||||
start.SetObjective(goal);
|
start.SetObjective(goal);
|
||||||
start.OnPlayerEnter(player);
|
start.OnPlayerEnter(player);
|
||||||
player = goal.GetPlayer();
|
player = goal.GetPlayer();
|
||||||
|
cam.GetComponent<AudioControl>().LevelBgm();
|
||||||
if ( player != null ) {
|
if ( player != null ) {
|
||||||
cam.GetComponent<CameraControl>().SetFollow(player.gameObject);
|
cam.GetComponent<CameraControl>().SetFollow(player.gameObject);
|
||||||
GetUI().InitHealthController(player);
|
GetUI().InitHealthController(player);
|
||||||
GetUI().InitBrakeController(player);
|
GetUI().InitBrakeController(player);
|
||||||
} else {
|
} else {
|
||||||
Debug.Log("No Player spawned!");
|
Debug.Log("No Player spawned!");
|
||||||
}
|
}
|
||||||
|
|
||||||
finish.SetObjective(new FinishObjective(finish));
|
finish.SetObjective(new FinishObjective(finish));
|
||||||
cam.GetComponent<AudioControl>().LevelBgm();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Running() {
|
private void Running() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue