Mad Level Manager
|
Public Member Functions | |
override MadLevelIcon | GetIcon (string levelName) |
Gets the icon representation for given level name. More... | |
override MadLevelIcon | FindClosestIcon (Vector3 position) |
Finds the closest level icon to given position or More... | |
override void | LookAtIcon (MadLevelIcon icon) |
Looks at given icon; More... | |
void | LookAtIcon (MadLevelIcon icon, MadiTween.EaseType easeType, float time) |
void | LookAtLevel (string levelName, MadiTween.EaseType easeType, float time) |
void | ReplaceIcons (GameObject newIcon) |
Will replace all icons in the layout with selected icon. Position, scale and rotation will be preserved. This method is meant for editor-use only. More... | |
Public Member Functions inherited from MadLevelManager.MadLevelAbstractLayout | |
delegate void | IconActivationEvent (MadLevelIcon icon, string levelName) |
MadLevelIcon | GetFirstIcon () |
Gets the icon representation for the first level (in order). More... | |
MadLevelIcon | GetLastIcon () |
Gets the icon representation for the last level (in order). More... | |
MadLevelIcon | GetLastCompletedIcon () |
Gets the last completed level icon in current group or null if cannot be found. More... | |
MadLevelIcon | GetLastUnlockedIcon () |
Gets last unlocked icon or null if cannot be found. More... | |
MadLevelIcon | GetActiveIcon () |
Gets the currently active icon or More... | |
MadLevelIcon | GetNextIcon (MadLevelIcon icon) |
MadLevelIcon | GetPreviousIcon (MadLevelIcon icon) |
MadLevelIcon[] | GetAllIcons () |
Gets all active icons available in the layout. More... | |
bool | LookAtLevel (string levelName) |
Looks at level. More... | |
bool | LookAtLastPlayedLevel () |
Looks at last played level icon. More... | |
void | Activate (MadLevelIcon icon) |
Public Member Functions inherited from MadLevelManager.MadNode | |
T | CreateChild< T > (string name) |
T | CreateChild< T > (string name, T template) |
MadNode | CreateChild (string name, GameObject template) |
T | FindParent< T > () |
Public Attributes | |
Texture2D | backgroundTexture |
bool | dirty |
Public Attributes inherited from MadLevelManager.MadLevelAbstractLayout | |
MadLevelIcon | iconTemplate |
bool | lookAtLastLevel = true |
LookLevelType | lookAtLevel = LookLevelType.FirstLevel |
TwoStepActivationType | twoStepActivationType = TwoStepActivationType.Disabled |
LoadLevel | loadLevel = LoadLevel.Immediately |
float | loadLevelLoadLevelDelay = 1.5f |
GameObject | loadLevelMessageReceiver |
string | loadLevelMessageName |
bool | loadLevelMessageIncludeChildren |
bool | onIconActivatePlayAudio |
AudioClip | onIconActivatePlayAudioClip |
float | onIconActivatePlayAudioVolume = 1 |
bool | onIconDeactivatePlayAudio |
AudioClip | onIconDeactivatePlayAudioClip |
float | onIconDeactivatePlayAudioVolume = 1 |
bool | onIconActivateMessage |
GameObject | onIconActivateMessageReceiver |
string | onIconActivateMessageMethodName = "OnIconActivate" |
bool | onIconActivateMessageIncludeChildren |
bool | onIconDeactivateMessage |
GameObject | onIconDeactivateMessageReceiver |
string | onIconDeactivateMessageMethodName = "OnIconDeactivate" |
bool | onIconDeactivateMessageIncludeChildren |
bool | handleMobileBackButton = true |
OnMobileBack | handleMobileBackButtonAction = OnMobileBack.LoadPreviousLevel |
string | handleMobileBackButtonLevelName |
MadLevelConfiguration | configuration |
int | configurationGroup = 0 |
bool | fullyInitialized |
Public Attributes inherited from MadLevelManager.MadNode | |
bool | managed |
Protected Member Functions | |
override void | OnEnable () |
override void | Update () |
Protected Member Functions inherited from MadLevelManager.MadLevelAbstractLayout | |
virtual void | Start () |
MadLevelIcon | CreateIcon (Transform parent, string name, MadLevelIcon template) |
Properties | |
MadFreeDraggable | draggable [get] |
Properties inherited from MadLevelManager.MadNode | |
static bool | Instantiating [get] |
Additional Inherited Members | |
Public Types inherited from MadLevelManager.MadLevelAbstractLayout | |
enum | TwoStepActivationType { Disabled, OnlyOnMobiles, Always } |
enum | LoadLevel { Immediately, WithDelay, SendMessage } |
enum | OnMobileBack { LoadPreviousLevel, LoadSpecifiedLevel } |
enum | LookLevelType { FirstLevel, LastUnlocked, LastCompleted } |
Events inherited from MadLevelManager.MadLevelAbstractLayout | |
IconActivationEvent | onIconActivate |
IconActivationEvent | onIconDeactivate |
|
virtual |
Finds the closest level icon to given position or
null
if no icons found.
position | The position. |
Implements MadLevelManager.MadLevelAbstractLayout.
|
virtual |
Gets the icon representation for given level name.
null
if not found.levelName | Level name. |
Implements MadLevelManager.MadLevelAbstractLayout.
|
virtual |
void MadLevelManager.MadLevelFreeLayout.ReplaceIcons | ( | GameObject | newIcon | ) |
Will replace all icons in the layout with selected icon. Position, scale and rotation will be preserved. This method is meant for editor-use only.
newIcon |