Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - spacexplorer

Pages: [1]
1
multiple properties in one declaration
At the moment I m doing this

-------------------------------------------------------------------------------
//if (Input.GetKey (KeyCode.LeftArrow)

      currentScreenTransform.DOLocalMove(screenShowPosition,1);
      currentScreenTransform.DORotate(screenShowRotation,1);
-------------------------------------------------------------------------------

Is it possible to do it in one line of code/declaration

Also: I would like to do a from and to in one declaration rather then first setting the start position and then the DOLocalMove

It seems I can only do either a From or a To

-----------------------------------------
currentScreenTransform.DOLocalMove(screenStartPosition,0); //0 seconds - jump to start position
currentScreenTransform.DOLocalMove(screenShowPosition,1);

currentScreenTransform.DORotate(screenStartRotation,0);
currentScreenTransform.DORotate(screenShowRotation,1);
---------------------------------------









Pages: [1]