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()); } } }
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); }
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); }