Skip to content

Commit

Permalink
WGT overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
Peksterix committed Jan 27, 2022
1 parent fc0e87d commit 26c28ae
Show file tree
Hide file tree
Showing 67 changed files with 7,459 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public enum GameType
public GameObject WGTPlayerPrefab;
public GameObject THPlayerPrefab;

public List<NetworkIdentity> inGamePlayerList = new List<NetworkIdentity>();

// Start is called before the first frame update
void Start()
{
Expand All @@ -48,6 +50,8 @@ void Start()

public override bool OnRoomServerSceneLoadedForPlayer(NetworkConnection conn, GameObject roomPlayer, GameObject gamePlayer)
{
inGamePlayerList.Add(gamePlayer.GetComponent<NetworkIdentity>());

if (gameType == GameType.KOTH)
{
gamePlayer.GetComponent<PlayerScore>().playerName = roomPlayer.GetComponent<NetworkRoomPlayerExt>().username;
Expand All @@ -57,6 +61,13 @@ public override bool OnRoomServerSceneLoadedForPlayer(NetworkConnection conn, Ga
return base.OnRoomServerSceneLoadedForPlayer(conn, roomPlayer, gamePlayer);
}

public override void OnStopServer()
{
base.OnStopServer();
inGamePlayerList.Clear();
}


public override void OnRoomServerPlayersReady()
{
base.OnRoomServerPlayersReady();
Expand Down
8 changes: 8 additions & 0 deletions NYP x Trident/Assets/Plugins.meta

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

8 changes: 8 additions & 0 deletions NYP x Trident/Assets/Plugins/Demigiant.meta

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

8 changes: 8 additions & 0 deletions NYP x Trident/Assets/Plugins/Demigiant/DOTween.meta

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

2,963 changes: 2,963 additions & 0 deletions NYP x Trident/Assets/Plugins/Demigiant/DOTween/DOTween.XML

Large diffs are not rendered by default.

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

Binary file not shown.
22 changes: 22 additions & 0 deletions NYP x Trident/Assets/Plugins/Demigiant/DOTween/DOTween.dll.meta

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

5 changes: 5 additions & 0 deletions NYP x Trident/Assets/Plugins/Demigiant/DOTween/Editor.meta

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

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

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

Binary file not shown.

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

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 26c28ae

Please sign in to comment.