Ejemplo n.º 1
0
 public void Reset()
 {
     m_callback           = null;
     m_position_component = null;
     m_max_speed          = FixPoint.Zero;
     m_direction.MakeZero();
 }
Ejemplo n.º 2
0
        public void SetCallback(IMovementCallback callback)
        {
            m_callback = callback;
            ILogicOwnerInfo owner_info = callback.GetOwnerInfo();

            m_position_component = owner_info.GetOwnerEntity().GetComponent(PositionComponent.ID) as PositionComponent;
        }
Ejemplo n.º 3
0
 public void Reset()
 {
     m_callback           = null;
     m_position_component = null;
     m_max_speed          = FixPoint.Zero;
     m_remain_time        = FixPoint.Zero;
     m_path.Clear();
     m_cur_way_point = INVALID_WAYPOINT_INDEX;
     m_direction.MakeZero();
     m_target = null;
     m_range  = FixPoint.Zero;
 }