public override IEnumerator PlayAnimationRoutine() { GetComponent <LuaContext>().SetGlobal("attacker", attacker); GetComponent <LuaContext>().SetGlobal("defender", defender); attacker.PrepareForBattleAnimation(this, Doll.Type.Attacker); defender.PrepareForBattleAnimation(this, Doll.Type.Defender); yield return(base.PlayAnimationRoutine()); attacker.ResetAfterAnimation(); defender.ResetAfterAnimation(); }