HeavenStudioPlus/Assets/Scripts/Games/TapTroupe/TapTroupeZoomOut.cs
Rapandrasmus 7481f32c16
3D Camera and Viewport Position Update Fixes (#579)
* Fixed Camera in Rhythm Rally and BTSDS

* commet out log

* fixed viewport not updating canvas in onBeatChanged
2023-11-21 16:57:03 +00:00

25 lines
622 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Util;
namespace HeavenStudio.Games.Scripts_TapTroupe
{
public class TapTroupeZoomOut : MonoBehaviour
{
float zoomOffset;
float yOffset;
void Start ()
{
zoomOffset = transform.localPosition.z;
yOffset = transform.localPosition.y;
}
void Update()
{
transform.localPosition = new Vector3(transform.localPosition.x, GameCamera.AdditionalPosition.y + yOffset, GameCamera.AdditionalPosition.z + zoomOffset);
}
}
}