Esempio n. 1
0
 void Awake()
 {
     if (FloVRManagerIntern.Instance != null)
     {
         FloVRManagerIntern.Initialize(AppId, AppSecret, null);
     }
 }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
 /// <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);
 }