mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 12:37:38 +02:00
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
This commit is contained in:
25
Assets/Scripts/Games/TapTroupe/TapTroupeZoomOut.cs
Normal file
25
Assets/Scripts/Games/TapTroupe/TapTroupeZoomOut.cs
Normal file
@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user