Vector3 GetDirectionFromBucketManagerDirection(BucketManagerDirection direction) { switch (direction) { case BucketManagerDirection.LEFT: return(Vector3.left); break; case BucketManagerDirection.RIGHT: return(Vector3.right); break; case BucketManagerDirection.FORWARD: return(Vector3.forward); break; } return(Vector3.zero); }
public void MovePlatform(BucketManagerDirection newDirection) { _movingItem.transform.DOMove(_movingItem.transform.position + GetDirectionFromBucketManagerDirection(newDirection), _movementDuration); }