Exemple #1
0
 void Start()
 {
     if (VrLifeCore.API == null)
     {
         return;
     }
     VrLifeCore.API.Room.RoomExited += OnRoomExit;
     _api = VrLifeCore.GetClosedAPI(_info);
     InitilizePlayer();
     _roomStateCoroutine = StartCoroutine(RoomStateCoroutine());
     _ready = true;
 }
Exemple #2
0
 public void Init(OpenAPI api, MenuAPI menuAPI, HUDAPI hudAPI)
 {
     this._menuAPI = menuAPI;
     this._api     = VrLifeCore.GetClosedAPI(_info);
     CreateMenuItems();
 }
Exemple #3
0
 public void Init(OpenAPI api, GlobalAPI globalAPI)
 {
     _api       = VrLifeCore.GetClosedAPI(_info);
     _globalAPI = globalAPI;
     _api.DeviceAPI.Microphone.MicrophoneData += OnMicrophoneData;
 }