public override void OnStart()
	{
		initData ();
		exit = checkDis ();
		if(exit)
			return;

		AI_Data data = m_unit.getAIData ();
		maxdis = data.max_startwalkdis;
		mindis = data.min_startwalkdis;	
		changeDis = Random.Range (mindis, maxdis);

		//设置声音
		script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
		snd_move = script_monEf.snd_move[Random.Range(0,3)];
		script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();

		int type = (int)m_unit.m_unitType;
		string ani_name = "";
		if(type == (int)GlobalDef.UnitType.UNIT_TYPE_MONSTER)
		{
			ani_name = StaticMonster.Instance().getStr(m_unit.m_TemplateID, "move");
			m_unit.m_animation [ani_name].speed = 0.4f;	
		}
		else if(type == (int)GlobalDef.UnitType.UNIT_TYPE_ENEMY_HERO)
		{
			ani_name = StaticHero.Instance().getStr(m_unit.m_TemplateID, "move");
		}
		m_unit.m_animation.Stop ();
		m_unit.m_animation.CrossFade(ani_name);
	}
	public override void OnStart()
	{
		initData ();
		m_unit.m_animation.Stop ();
		int type = (int)m_unit.m_unitType;
		string ani_name = "";
		if(type == (int)GlobalDef.UnitType.UNIT_TYPE_MONSTER)
		{
			ani_name = StaticMonster.Instance().getStr(m_unit.m_TemplateID, "walk");
			m_unit.m_animation [ani_name].speed = 0.34f;	//speed_idle *(-0.5f);
			//设置声音
			script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
			snd_move = script_monEf.snd_move[Random.Range(0,3)];
			script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
		}
		else if(type == (int)GlobalDef.UnitType.UNIT_TYPE_ENEMY_HERO)
		{
			ani_name = StaticHero.Instance().getStr(m_unit.m_TemplateID, "walk");

			//设置声音
			script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
			snd_move = script_monEf.snd_move[Random.Range(0,3)];
			script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
		}

		m_unit.m_animation.Stop ();
		m_unit.m_animation.CrossFade(ani_name);
	}
	public override void OnStart()
	{
		initData ();

		script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
		script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>();
	}
	void Awake()
	{
		m_transform = transform;
		m_animation = GetComponent<Animation>();
		m_audio = GetComponent<AudioSource>();
		m_rigidbody = GetComponent<Rigidbody>();
		script_monEf = Monster_efs.instance;
		enemy = GameObject.FindWithTag("Respawn").GetComponent<DB_Monster>().enemy[1];

		script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>();
		script_cam = Camera.main.GetComponent<CamMove>();
		//
		gameObject.AddComponent<Skill> ();
		m_skillScript = gameObject.GetComponent<Skill> ();
		skillData = new SkillState("enemy_normal_skill");
		skillData.Init (this);
		skillList = new SkillManager ();
		m_isDead = false;
	}
	void Awake()
	{
		mytransform = transform;
		myanimation = GetComponent<Animation>();
		myaudio = GetComponent<AudioSource>();
		script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>();
		enemy = GameObject.FindWithTag("Respawn").GetComponent<DB_Monster>().enemy[enemykind];
		//Debug.Log(enemykind);
		cha1 = GameObject.FindWithTag("Player").transform;
		script_cha = cha1.GetComponent<MyPlayer>();
		script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>();
		script_cam = Camera.main.GetComponent<CamMove>();
	}