//ybzuo-dena
using UnityEngine;
public class NaBuffer:N2CAction
{
	public NaBuffer(float _begin_time,float _end_time,int _id,int _buffer_id,string _fx)
	{
		m_type=ACTION_TYPE.BUFFER;
		m_begin_time=_begin_time;
		m_end_time=_end_time;
		m_id=_id;
		m_buffer_id=_buffer_id;
		m_fx=_fx;
	}
	public override void reset()
	{
		reset_base();
	}

	public override bool update(float _time,float _dtime)
	{
		if(m_finish)
		{
			return true;
		}
		if(_time>=m_begin_time)
		{
			if(!m_begin)
			{
				m_begin=true;

//				Debug.Log("BufferId:"+m_buffer_id+" Fx:"+m_fx);
				//replay_reset_base(ClientEngine.get_single().get_player(m_id));
				N2Player _p=ClientEngine.get_single().get_player(m_id);
//				MatchFxMgr.get_single().PlayFx(_p,m_fx);
			}
		}
		if(_time>=m_end_time)
		{
			m_finish=true;
			return true;
		}
		return false;
	}
	int m_id;
	int m_buffer_id;
	string m_fx;
}




