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