Initial commit
This commit is contained in:
22
Assets/Scripts/CekOverrideRotasi.cs
Normal file
22
Assets/Scripts/CekOverrideRotasi.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class CekOverrideRotasi : MonoBehaviour
|
||||
{
|
||||
private Quaternion lastRotation;
|
||||
|
||||
void Start()
|
||||
{
|
||||
lastRotation = transform.rotation;
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (transform.rotation != lastRotation)
|
||||
{
|
||||
Debug.LogWarning("⚠️ ROTASI TELAH DIOVERRIDE");
|
||||
Debug.Log("Rotasi Baru: " + transform.rotation.eulerAngles);
|
||||
Debug.Log("Stack Trace:\n" + StackTraceUtility.ExtractStackTrace());
|
||||
lastRotation = transform.rotation;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user