public InteractableCommand(Transform moving, IStoreTarget iStoreTarget, bool useAltInteraction, Bot bot, string targetName, TYPE type) : base(moving, iStoreTarget)
 {
     _bot = bot;
     _useAltInteraction = useAltInteraction;
     _targetName        = targetName;
     _type = type;
 }
    public SearchCommand(Transform moving, IStoreTarget iStoreTarget, ItemData itemData, Vector3 searchLocation, float searchRadius) : base(moving, iStoreTarget)
    {
        if (!_objectManager)
        {
            _objectManager = Object.FindObjectOfType <ObjectManager>();
        }

        _searchLocation = searchLocation;
        _radius         = searchRadius;
        _itemData       = itemData;
    }
Exemplo n.º 3
0
 public MoveToStoredTargetCommand(Transform moving, IStoreTarget iStoreTarget, float speed, string targetName) : base(moving, iStoreTarget)
 {
     _speed     = speed;
     TargetName = targetName;
 }
Exemplo n.º 4
0
 public StoreAndMoveToStoredTargetCommand(Transform moving, IStoreTarget iStoreTarget, IInteractable targetInteractable, float speed) : base(moving, iStoreTarget)
 {
     _speed = speed;
     IStoreTarget.StoredTarget = targetInteractable;
     TargetInteractable        = targetInteractable;
 }
 protected TargetCommandBase(Transform moving, IStoreTarget iStoreTarget)
 {
     Moving       = moving;
     IStoreTarget = iStoreTarget;
 }