public void PlayPlayerAttackCutscene() { AttackCutscene scene = attackCutscene.GetComponent <AttackCutscene>(); InitCutscene(); scene.SetReferences(attacker, defender); scene.PlayPlayerAttack(); }
public IEnumerator PlayEnemyAttackCutscene(Unit attacker, Unit defender) { AttackCutscene scene = attackCutscene.GetComponent <AttackCutscene>(); this.attacker = attacker; this.defender = defender; InitCutscene(); scene.SetReferences(attacker, defender); yield return(StartCoroutine(scene.PlayEnemyAttack())); }