mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +02:00
Fork Lifter Spaghetti Code
This commit is contained in:
9
Assets/Scripts/Transform/ForceScaleIdentity.cs
Normal file
9
Assets/Scripts/Transform/ForceScaleIdentity.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class ForceScaleIdentity : MonoBehaviour
|
||||
{
|
||||
void Update()
|
||||
{
|
||||
transform.localScale = new Vector3(1f / transform.parent.localScale.x, 1f / transform.parent.localScale.y);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user