mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 05:35:08 +00:00
dc1fc01458
* TWEAKS AND ZOOM OUT! * Forgor these * Another thing * tink sfx improvement
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
|