示例#1
0
 public void ApplyBuff(ScenePerformance performance)
 {
     Buff buff = new Buff(performance);
     _buffs.Add(buff);
     buff.Start();
 }
示例#2
0
    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();
    }
示例#3
0
 public Buff(ScenePerformance performance)
 {
     Performance = performance;
 }