Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Null reference when trying to get count of players in TEAM

$
0
0
Debug.Log ("count of players in team " + PunTeams.PlayersPerTeam [PunTeams.Team.red].Count);

gives me NullReferenceException: Object reference not set to an instance of an object. I also used the PickupDemoGui.cs script as a reference point which also gives me the same error (btw this is the exact script from the demo that you supply which is giving me the error as well). I had this working a couple of months ago using the exact same script but now I get errors. Please help

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>