示例#1
0
        /// <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();
            }
        }
示例#2
0
        /// <summary>
        /// Initializes this module.
        /// </summary>
        public static void Initialize()
        {
            if (I != null)
            {
                return;
            }

            I            = RenkoLibrary.CreateModule <UnityThread>();
            MainThreadId = Thread.CurrentThread.ManagedThreadId;
        }
示例#3
0
        /// <summary>
        /// Initializes Netko library.
        /// </summary>
        public static void Initialize()
        {
            if (I != null)
            {
                return;
            }

            I         = RenkoLibrary.CreateModule <Netko>(true);
            I.updater = new Updater();
        }
示例#4
0
        /// <summary>
        /// Initializes the gallery picker plugin.
        /// </summary>
        public static void Initialize()
        {
            if (I != null)
            {
                return;
            }

            I = RenkoLibrary.CreateModule <GalleryPicker>();
            SetupPlugin();
        }
示例#5
0
        /// <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;
        }
示例#6
0
        /// <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();
        }
示例#7
0
        /// <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();
        }
示例#8
0
文件: RenQL.cs 项目: jerryrox/Renko-L
 /// <summary>
 /// Initializes RenQL module.
 /// </summary>
 public static void Initialize()
 {
     I = RenkoLibrary.CreateModule <RenQL>();
 }