private void Awake()
{
m_hWeapon = this.GetComponent<Weapon>();
Owner = GetComponent<Actor>();
m_hIdle = new StateIdle(this);
m_hPatrol = new StatePatrol(this);
switch ((int)AimMode)
{
case 1:
m_hPatrol.Next = new StateAimBallistic(this);
break;
case 2:
m_hPatrol.Next = new StateAimDirect(this);
break;
}
m_hPatrol.Next.Next = m_hPatrol;
m_hCurrent = m_hPatrol;
m_hCurrent.OnStateEnter();
}