/// <summary> /// Initializes the plugin tools. /// </summary> public static void Initialize() { if (Instance == null) { Instance = RenkoLibrary.CreateModule <PluginTools>(); } if (I == null) { #if UNITY_EDITOR I = new EditorPluginTools(); #else if (Application.platform == RuntimePlatform.Android) { I = new AndroidPluginTools(); } else { I = new IosPluginTools(); } #endif I.Initialize(); } }
/// <summary> /// Initializes this module. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <UnityThread>(); MainThreadId = Thread.CurrentThread.ManagedThreadId; }
/// <summary> /// Initializes Netko library. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <Netko>(true); I.updater = new Updater(); }
/// <summary> /// Initializes the gallery picker plugin. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <GalleryPicker>(); SetupPlugin(); }
/// <summary> /// Initializes a new instance of Timer if doesn't already exist. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <Timer>(); speed = Time.timeScale; }
/// <summary> /// Initializes the camera plugin. /// Will not do anything if already initialized. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <NativeCamera>(); SetupPlugin(); }
/// <summary> /// Initializes FateFX module. /// </summary> public static void Initialize(int listCapacity = 0) { if (I != null) { return; } I = RenkoLibrary.CreateModule <FateFX>(); I.updater = new Updater(listCapacity); I.speed = 1f; // Dependency Easing.Initialize(); }
/// <summary> /// Initializes RenQL module. /// </summary> public static void Initialize() { I = RenkoLibrary.CreateModule <RenQL>(); }