Пример #1
0
        void OnApplicationQuit()
        {
#if UNITY_EDITOR
            if (ScriptKit.Script != null)
            {
                ScriptKit.Dispose();
            }
#endif
        }
Пример #2
0
        private void Awake()
        {
            if (ScriptKit.Script == null)
            {
                ScriptKit.Script = new ILRuntimeScript();

                ScriptKit.LoadScript(() =>
                {
                    ScriptKit.CallStaticMethod(Namespace + "." + ScriptName, "Start", this);
                });
            }
            else
            {
                ScriptKit.CallStaticMethod(Namespace + "." + ScriptName, "Start", this);
            }
        }