Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 public void MovePlatform(BucketManagerDirection newDirection)
 {
     _movingItem.transform.DOMove(_movingItem.transform.position + GetDirectionFromBucketManagerDirection(newDirection), _movementDuration);
 }