2023-02-20 05:49:54 +00:00
|
|
|
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()
|
|
|
|
{
|
2023-11-21 16:57:03 +00:00
|
|
|
transform.localPosition = new Vector3(transform.localPosition.x, GameCamera.AdditionalPosition.y + yOffset, GameCamera.AdditionalPosition.z + zoomOffset);
|
2023-02-20 05:49:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|