Beispiel #1
0
    public void PlayPlayerAttackCutscene()
    {
        AttackCutscene scene = attackCutscene.GetComponent <AttackCutscene>();

        InitCutscene();
        scene.SetReferences(attacker, defender);
        scene.PlayPlayerAttack();
    }
Beispiel #2
0
    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()));
    }