public void Initialize()
 {
     LoadEntities();
     EntitySystemManager.Initialize();
     Initialized = true;
     InitializeEntities();
 }
Ejemplo n.º 2
0
 public override void Startup()
 {
     base.Startup();
     EntitySystemManager.Initialize();
     Started = true;
     InitializeEntities();
 }
Ejemplo n.º 3
0
 public override void InitializeEntities()
 {
     if (Initialized)
     {
         throw new InvalidOperationException("InitializeEntities() called multiple times");
     }
     base.InitializeEntities();
     EntitySystemManager.Initialize();
     Initialized = true;
 }
        public override void Startup()
        {
            base.Startup();

            if (Started)
            {
                throw new InvalidOperationException("Startup() called multiple times");
            }

            EntitySystemManager.Initialize();
            Started = true;
        }
Ejemplo n.º 5
0
        public void Awake()
        {
            // managers
            EntityManager.Initialize();
            EntitySystemManager.Initialize();
            PlayerManager.Initialize();
            SelectionManager.Initialize();

            // factories
            EntityMaterialFactory.Initialize(); // must be initialized before BodyPartFactory due to dependencies
            BodyFactory.Initialize();

            // initialize game
            InitializeGameSession();
        }