Class LevelUtility
Declaration
public static class LevelUtility
Properties
LevelTimeStat
Declaration
public static LevelTimeStat LevelTimeStat { get; }
Fields
CurrentLevel
Declaration
public static LevelBase CurrentLevel
LevelUpExtraParameters
Declaration
public static Dictionary<string, object> LevelUpExtraParameters
LevelStartExtraParameters
Declaration
public static Dictionary<string, object> LevelStartExtraParameters
LevelCompleteExtraParameters
Declaration
public static Dictionary<string, object> LevelCompleteExtraParameters
LevelFailExtraParameters
Declaration
public static Dictionary<string, object> LevelFailExtraParameters
Methods
LoadLevel(LevelBase, Action, Action)
Begins loading a level
Declaration
public static void LoadLevel(LevelBase levelBase, Action onLoaded = null, Action onLoading = null)
Parameters
Type | Name |
---|---|
MatchinghamGames.GameUtilities.Models.LevelBase | levelBase |
System.Action | onLoaded |
System.Action | onLoading |
UnloadCurrentLevel(Action, Action)
Declaration
public static void UnloadCurrentLevel(Action onUnloaded = null, Action onUnloading = null)
Parameters
Type | Name |
---|---|
System.Action | onUnloaded |
System.Action | onUnloading |
LevelUp(bool, bool)
Declaration
public static void LevelUp(bool sendEvent = true, bool autoSave = false)
Parameters
Type | Name |
---|---|
System.Boolean | sendEvent |
System.Boolean | autoSave |
SendLevelStartEvents(ulong)
Declaration
public static void SendLevelStartEvents(ulong level)
Parameters
Type | Name |
---|---|
System.UInt64 | level |
SendLevelCompleteEvents(ulong)
Declaration
public static void SendLevelCompleteEvents(ulong level)
Parameters
Type | Name |
---|---|
System.UInt64 | level |
SendLevelFailEvents(ulong)
Declaration
public static void SendLevelFailEvents(ulong level)
Parameters
Type | Name |
---|---|
System.UInt64 | level |
StartLevelTimer()
Declaration
public static void StartLevelTimer()
StopLevelTimer()
Declaration
public static double StopLevelTimer()
Returns
System.Double