using UnityEngine; public class TutorialResultAnimationHandler : IResultAnimationHandler { private readonly GameObject m_resultAnimationAgentObj; private readonly TutorialResultAnimationAgent m_resultAnimationAgentIns; public ResultAnimationAgent m_resultAnimationAgent => m_resultAnimationAgentIns; public TutorialResultAnimationHandler(BattleCamera battleCamera) { m_resultAnimationAgentObj = new GameObject(); m_resultAnimationAgentIns = m_resultAnimationAgentObj.AddComponent(); m_resultAnimationAgentIns.GetComponent().SetBattleCamera(battleCamera); } public void Destroy() { Object.Destroy(m_resultAnimationAgentObj); } }