Пример #1
0
        public override HotfixObject Instantiate(string rTypeName, params object[] rArgs)
        {
            if (mApp == null)
            {
                return(null);
            }
            var rObject = new HotfixObject(this, rTypeName);

            rObject.Object = Activator.CreateInstance(mApp.GetType(rTypeName), rArgs);
            return(rObject);
        }
Пример #2
0
        public override HotfixObject Instantiate(string rTypeName, params object[] rArgs)
        {
            if (mApp == null)
            {
                return(null);
            }
            var rObject = new HotfixObject(this, rTypeName);

            rObject.Object = mApp.Instantiate(rTypeName, rArgs);
            return(rObject);
        }
Пример #3
0
        public async Task Initialize()
        {
            MainLogicHotfixObj = HotfixManager.Instance.Instantiate(MainLogicScript);

            await(HotfixManager.Instance.Invoke(MainLogicHotfixObj, "Initialize") as Task);
        }