/// <summary> /// Handles the start of the level : starts the autoincrementation of the score, sets the proper status and triggers the corresponding event. /// </summary> public virtual void LevelStart() { GameManager.Instance.SetStatus(GameManager.GameStatus.GameInProgress); GameManager.Instance.AutoIncrementScore(true); MMEventManager.TriggerEvent(new MMGameEvent("GameStart")); }
protected virtual void TestShake() { MMEventManager.TriggerEvent(new MMCameraShakeEvent(TestDuration, TestAmplitude, TestFrequency)); }
public static void Trigger(LevelArenaCoordinator arenaCoordrArg) { e.arenaCoordr = arenaCoordrArg; MMEventManager.TriggerEvent(e); }
public static void Trigger() { MMEventManager.TriggerEvent(e); }
public static void Trigger(Character character, MMCharacterEventTypes eventType) { e.TargetCharacter = character; e.EventType = eventType; MMEventManager.TriggerEvent(e); }
public static void Trigger(PickableItem pickedItem) { e.PickedItem = pickedItem; MMEventManager.TriggerEvent(e); }
/// <summary> /// What happens when the main button is pressed /// </summary> public virtual void ButtonPressed() { MMEventManager.TriggerEvent(new MMFadeInEvent(FadeOutDuration)); // if the user presses the "Jump" button, we start the first level. StartCoroutine(LoadFirstLevel()); }