private void Awake()
        {
            _instance = this;

            DontDestroyOnLoad(this);

            StartCoroutine(WaitForGameData());

            ui = BSMultiplayerUI._instance;
        }
示例#2
0
 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);
     }
 }
示例#3
0
        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;
                });
            }
        }