Ejemplo n.º 1
0
    void HandleGoToWaitZone()
    {
        DropPointLogic dropperForWaitZone = _door.GetComponent <DoorRobotInteraction>().dropper;

        _rm.Move(dropperForWaitZone.GetPoint(PointsDrop.WAITSTATION));
        _op.SetTarget(_currentBoxPicked.box);
        _op.Stay();
        if (_rm.IsHeNearInstance(dropperForWaitZone.GetPoint(PointsDrop.WAITSTATION)))
        {
            _currentState = RobotState.INWAITZONE;
            _rm.SetInstantSpeed(0);
        }
    }