Example #1
0
    public override void OrderGround(Vector3 location)
    {
        if (m_orderableTarget != null)
        {
            m_orderableTarget.LeaveWorkTarget(m_workTarget, this);
            m_workTarget      = null;
            m_orderableTarget = null;
        }

        location.y   = 1f;
        m_moveTarget = location;
        SwitchState(CuboState.MOVING_TO_EMPTY);
    }