HeavenStudioPlus/Assets/Scripts/Games/TapTroupe/TapTroupeZoomOut.cs
Rapandrasmus dc1fc01458 Tap troupe final tweaks and additions, the game can be marked as done now!!!!!!!!!!!!!! (#296)
* TWEAKS AND ZOOM OUT!

* Forgor these

* Another thing

* tink sfx improvement
2023-02-20 05:49:54 +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);
}
}
}