Levels/LevelActivator.cs
/// <summary>
/// Use this to load level in game. All necessary clean up operation prior to loading you have to manage yourself.
/// </summary>
/// <param name="level"></param>
/// <returns></returns>
Use this to load level in game. All necessary clean up operation prior to loading you have to manage yourself.
Use this to load level in game . All necessary clean up operation prior to loading you have to manage yourself .
public static LevelActivator New(Level level, Action<Level> callback)
        {
            GameObject go = new GameObject("Level Activator");
            LevelActivator activator = go.AddComponent<LevelActivator>();
            activator.level = level;
            level.OnLevelLoaded = callback;
            return activator;
        }
public static LevelActivator New ( Level level , Action < Level > callback ) { GameObject go = new GameObject ( " " ) ; LevelActivator activator = go . AddComponent < LevelActivator > ( ) ; activator . level = level ; level . OnLevelLoaded = callback ; return activator ; }
Use this to load level in game.
Use this to load level in game .
None
level
Level
None
callback
Action<Level>