private void Awake() { _instance = this; DontDestroyOnLoad(this); StartCoroutine(WaitForGameData()); ui = BSMultiplayerUI._instance; }
public void OnLevelWasLoaded(int level) { Console.WriteLine("Loading scene " + level); if (level == 1) { BSMultiplayerUI.OnLoad(); BSMultiplayerMain.OnLoad(level); } else if (level > 1) { BSMultiplayerMain.OnLoad(level); } }
private void Awake() { _instance = this; DontDestroyOnLoad(this); StartCoroutine(WaitForGameData()); ui = BSMultiplayerUI._instance; if (playerID == 0 || playerInfo == null) { Users.GetLoggedInUser().OnComplete((Message <User> msg) => { playerID = msg.Data.ID; playerName = msg.Data.OculusID; }); } }