public void SetActiveEvent(int index) { if (rune_Event != RuneEvent.ActiveOne && rune_Event != RuneEvent.ActiveTwo) { return; } else { rune_Event = (RuneEvent)index; } }
public void UseRune(RuneEvent runeEvent) { List <Rune> tempRunes; if (!RunesDictionary.TryGetValue(runeEvent, out tempRunes)) { return; } foreach (var rune in tempRunes) { if (rune.runeType == RuneType.active) { if (testplayer.Instance.FLoseMana(rune.MpNeed)) { rune.Execute(); } } else { rune.Execute(); } } }