Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private TweenConfig turnWorldCameraTweenConfig;
- private void Start()
- {
- // For configs that you are going to resuse multiple times, save the config for max performance.
- turnWorldCameraTweenConfig = new TweenConfig()
- .eulerAngles(Vector3.zero)
- .setEaseType(EaseType.CubicOut)
- .onComplete(thisTween =>
- {
- CameraOrigin.rotation = Quaternion.identity;
- });
- }
- private void TurnWorld()
- {
- // You can even edit the config later if you want.
- // turnWorldCameraTweenConfig.eulerAngles(new Vector3(45.0f, 0.0f, 0.0f));
- Go.to(CameraTransform, cameraTurnTime, turnWorldCameraTweenConfig);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement