Exemple #1
0
 private IEnumerator InitializeModularSystems(Transform systemsParent)
 {
     // Setup Additional Systems as needed
     //Debug.Log("Loading Modular Systems");
     foreach (var module in gameModules)
     {
         if (module is IGameModule)
         {
             IGameModule gameModule = module as IGameModule;
             yield return(gameModule.LoadModule());
         }
     }
 }
Exemple #2
0
 private IEnumerator InitializeModularSystems(Transform systemsParent)
 {
     Debug.Log("Loading modular systems...");
     foreach (Component c in GameModules)
     {
         if (c is IGameModule)
         {
             IGameModule module = (IGameModule)c;
             yield return(module.LoadModule());
         }
     }
     yield return(null);
 }
Exemple #3
0
    private IEnumerator InitializeModularSystems(Transform systemsParent)
    {
        // Setup Additional Systems as needed
        Debug.Log("Loading Modular Systems");
        foreach (Component c in GameModules)
        {
            if (c is IGameModule)
            {
                IGameModule module = (IGameModule)c;
                yield return(module.LoadModule());
            }
        }

        yield return(null);
    }