KEngine.AppEngine.New C# (CSharp) 메소드

New() 공개 정적인 메소드

Engine entry.... all begins from here
public static New ( GameObject gameObjectToAttach, IAppEntry entry, IList modules ) : AppEngine
gameObjectToAttach UnityEngine.GameObject
entry IAppEntry
modules IList
리턴 AppEngine
        public static AppEngine New(GameObject gameObjectToAttach, IAppEntry entry, IList<IModuleInitable> modules)
        {
            Debuger.Assert(gameObjectToAttach != null && modules != null);
            AppEngine appEngine = gameObjectToAttach.AddComponent<AppEngine>();
            appEngine._isNewByStatic = true;
            appEngine.GameModules = modules;
            appEngine.AppEntry = entry;

            return appEngine;
        }

Same methods

AppEngine::New ( GameObject gameObjectToAttach, IModuleInitable modules ) : AppEngine