Пример #1
0
 /// <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"));
 }
Пример #2
0
 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);
 }
Пример #5
0
 public static void Trigger(Character character, MMCharacterEventTypes eventType)
 {
     e.TargetCharacter = character;
     e.EventType       = eventType;
     MMEventManager.TriggerEvent(e);
 }
Пример #6
0
 public static void Trigger(PickableItem pickedItem)
 {
     e.PickedItem = pickedItem;
     MMEventManager.TriggerEvent(e);
 }
Пример #7
0
 /// <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());
 }