void Awake() { if (FloVRManagerIntern.Instance != null) { FloVRManagerIntern.Initialize(AppId, AppSecret, null); } }
internal static void Initialize(string appId, string appSecret, Action <SystemState> initCallback) { if (Instance == null) { Instance = new FloVRManagerIntern(appId, appSecret, initCallback); } else { Debug.LogWarning("FloVR: SDK is already initialized."); return; } }
/// <summary> /// Initialize the without the need for a MonoBehaviour. /// </summary> /// <param name="appId">App identifier.</param> /// <param name="appSecret">App secret.</param> /// <param name="stateChangeCallback">If system state is changed, this callback will be fired.</param> public static void Initialize(string appId, string appSecret, Action <SystemState> stateChangeCallback = null) { FloVRManagerIntern.Initialize(appId, appSecret, stateChangeCallback); }