public GamestateTable <T> TestTable(GamestateTracker.Table tableType) { if (table == null && globals == null) { table = new GamestateTable <T>(this, tableType); return(table); } return(null); }
void Awake() { GamestatePacketManager.RegisterPacket(); DontDestroyOnLoad(gameObject); UnityEngine.SceneManagement.SceneManager.sceneLoaded += OnSceneLoaded; view = GetComponent <PhotonView>(); _globals = new GlobalsEntry(this); _players = new GamestateTable <PlayerEntry>(this, Table.Players); _teams = new GamestateTable <TeamEntry>(this, Table.Teams); }