예제 #1
0
 public void LevelUp(AttributeLevels levels)
 {
     level++;
     experience = 0f;
     Apply(levels);
     experience = 0f;
     if ((UnityEngine.Object)PopFXManager.Instance != (UnityEngine.Object)null)
     {
         PopFXManager.Instance.SpawnFX(PopFXManager.Instance.sprite_Plus, attribute.modifier.Name, levels.transform, new Vector3(0f, 0.5f, 0f), 1.5f, false, false);
     }
     levels.GetComponent <Notifier>().Add(notification, string.Format(MISC.NOTIFICATIONS.LEVELUP.SUFFIX, attribute.modifier.Name, level));
     StateMachine.Instance instance = new UpgradeFX.Instance(levels.GetComponent <KMonoBehaviour>(), new Vector3(0f, 0f, -0.1f));
     ReportManager.Instance.ReportValue(ReportManager.ReportType.LevelUp, 1f, levels.GetProperName(), null);
     instance.StartSM();
     levels.Trigger(-110704193, attribute.Id);
 }
예제 #2
0
 private void OnSkillPointGained()
 {
     Game.Instance.Trigger(1505456302, this);
     if (AvailableSkillpoints == 1)
     {
         lastSkillNotification = new Notification(MISC.NOTIFICATIONS.SKILL_POINT_EARNED.NAME, NotificationType.Good, HashedString.Invalid, GetSkillPointGainedTooltip, null, true, 0f, delegate
         {
             ManagementMenu.Instance.OpenSkills(identity);
         }, null, null);
         Game.Instance.GetComponent <Notifier>().Add(lastSkillNotification, string.Empty);
     }
     if ((UnityEngine.Object)PopFXManager.Instance != (UnityEngine.Object)null)
     {
         PopFXManager.Instance.SpawnFX(PopFXManager.Instance.sprite_Plus, MISC.NOTIFICATIONS.SKILL_POINT_EARNED.NAME, base.transform, new Vector3(0f, 0.5f, 0f), 1.5f, false, false);
     }
     StateMachine.Instance instance = new UpgradeFX.Instance(base.gameObject.GetComponent <KMonoBehaviour>(), new Vector3(0f, 0f, -0.1f));
     instance.StartSM();
 }