Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
YoupKuiper committed Apr 19, 2018
2 parents 39dade3 + ec19f14 commit 4728f6b
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 428 deletions.
4 changes: 2 additions & 2 deletions Assets/Models/Tiles/Materials/trackfield_middleMat.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Assets/Scripts/Photon/RoomManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,12 @@ public void StartExecution(PhotonMessageInfo info)
[PunRPC]
public void StopExecution(PhotonMessageInfo info)
{
foreach (TGEPlayer p in gameManager.Players)
foreach(TGEPlayer p in gameManager.Players)
{
p.Player.StopExecution();
p.Player.StopAllCoroutines();
p.Player.IsReady = false;
EventManager.OnLevelReset(gameManager.LevelData,
gameManager.Players.Select(x => x.Player).ToList());
}
}

Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ IEnumerator ExecuteCommands()
yield return new WaitForSeconds(delay);
}
OnPlayerSequenceRan?.Invoke();
OnPlayerSequenceRan = null;
}

public void AddOrInsertCommandAt(BaseCommand command, int index)
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Sound/SfxBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void Awake()

void Initialize ()
{
print("audio init");
sfxPlayer = GetComponent<AudioSource>();
prefabContainer = GameManager.GetInstance().PrefabContainer;

Expand Down
Loading

0 comments on commit 4728f6b

Please sign in to comment.