定义
public EnemyType enemyType = EnemyType.PlayerTest;
public string enemyName;
public float m_randomDirectionAvergeTime=5;
private GameObject[] players;
private const int EMEMY_NORMAL = 0;
private const int EMEMY_ROTATION = 1;
private const int EMEMY_RUN = 2;
private const int EMEMY_CHASE = 3;
private const int EMEMY_ATTACK = 4;
private int state;
private int rotation_state;
private float aiThinkLastTime;
private float aiThinkRandomDirectionLastTime;
public float randomDirectionTime=5;
public int randomLastDirection=0;
public TankControl tankControl;
public float MinShootRange=15;
public float MaxShootRange=20;
public float MaxAvoidDistance=5;