Beispiel #1
0
 /// <summary>
 /// Grabs checkpoints events. If the checkpoint's order is > 0, we unlock our achievement
 /// </summary>
 /// <param name="checkPointEvent"></param>
 public virtual void OnMMEvent(CheckPointEvent checkPointEvent)
 {
     if (checkPointEvent.Order > 0)
     {
         MMAchievementManager.UnlockAchievement("SteppingStone");
     }
 }
Beispiel #2
0
        protected virtual void TriggerEnter(GameObject collider)
        {
            Character character = collider.GetComponent <Character>();

            if (character == null)
            {
                return;
            }
            if (character.CharacterType != Character.CharacterTypes.Player)
            {
                return;
            }
            if (LevelManager.Instance == null)
            {
                return;
            }
            LevelManager.Instance.SetCurrentCheckpoint(this);
            CheckPointEvent.Trigger(CheckPointOrder);
        }