23 lines
549 B
C#
23 lines
549 B
C#
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;
|
|
}
|
|
}
|
|
}
|