using UnityEngine;

public class PracticeResultAnimationHandler : IResultAnimationHandler
{
	private readonly GameObject m_resultAnimationAgentObj;

	private readonly PracticeResultAnimationAgent m_resultAnimationAgentIns;

	public ResultAnimationAgent m_resultAnimationAgent => m_resultAnimationAgentIns;

	public PracticeResultAnimationHandler(BattleCamera battleCamera)
	{
		m_resultAnimationAgentObj = new GameObject();
		m_resultAnimationAgentIns = m_resultAnimationAgentObj.AddComponent<PracticeResultAnimationAgent>();
		m_resultAnimationAgentIns.GetComponent<PracticeResultAnimationAgent>().SetBattleCamera(battleCamera);
	}

	public void Destroy()
	{
		Object.Destroy(m_resultAnimationAgentObj);
	}
}
