public void ApplyBuff(ScenePerformance performance) { Buff buff = new Buff(performance); _buffs.Add(buff); buff.Start(); }
public void UseAbility(GameObject actor, GameObject target) { performance = SceneDirector.CreatePerformaneScript(_abilitySceneScript, new AbilitySceenTranslator(actor, target)); performance.Completed += (storyboard) => { if (AbilityCompleted != null) AbilityCompleted(this); performance = null; }; performance.Perform(); }
public Buff(ScenePerformance performance) { Performance = performance; }