using UnityEngine; namespace Wizard; public class CompetitionResultAnimationHandler : IResultAnimationHandler { private readonly GameObject _resultAnimationAgentObj; private readonly CompetitionResultAnimationAgent _resultAnimationAgentIns; public ResultAnimationAgent m_resultAnimationAgent => _resultAnimationAgentIns; public CompetitionResultAnimationHandler(BattleCamera battleCamera) { _resultAnimationAgentObj = new GameObject(); _resultAnimationAgentIns = _resultAnimationAgentObj.AddComponent(); _resultAnimationAgentIns.GetComponent().SetBattleCamera(battleCamera); } public void Destroy() { Object.Destroy(_resultAnimationAgentObj); } }