public void Reset() { m_callback = null; m_position_component = null; m_max_speed = FixPoint.Zero; m_direction.MakeZero(); }
public void SetCallback(IMovementCallback callback) { m_callback = callback; ILogicOwnerInfo owner_info = callback.GetOwnerInfo(); m_position_component = owner_info.GetOwnerEntity().GetComponent(PositionComponent.ID) as PositionComponent; }
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; }