mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-23 10:05:14 +00:00
6f603cd8b3
* Fixed Camera in Rhythm Rally and BTSDS * commet out log * fixed viewport not updating canvas in onBeatChanged
25 lines
622 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
|