using UnityEngine;

public class RankMatchResultAnimationHandler : IResultAnimationHandler
{
	private readonly GameObject m_resultAnimationAgentObj;

	private readonly RankMatchResultAnimationAgent m_resultAnimationAgentIns;

	public ResultAnimationAgent m_resultAnimationAgent => m_resultAnimationAgentIns;

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

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