Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 208d626100
commit f74c547a13
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
using System;
using UnityEngine;
namespace LeTai.Asset.TranslucentImage.Demo
{
public class AutoMoveAndRotate : MonoBehaviour
{
public Vector3andSpace moveUnitsPerSecond;
public Vector3andSpace rotateDegreesPerSecond;
public bool ignoreTimescale, lateUpdate;
float m_LastRealTime;
void Start()
{
m_LastRealTime = Time.realtimeSinceStartup;
}
void Update()
{
if (!lateUpdate)
DoWork();
}
void LateUpdate()
{
if (lateUpdate)
DoWork();
}
void DoWork()
{
float deltaTime = Time.deltaTime;
if (ignoreTimescale)
{
deltaTime = (Time.realtimeSinceStartup - m_LastRealTime);
m_LastRealTime = Time.realtimeSinceStartup;
}
transform.Translate(moveUnitsPerSecond.value * deltaTime, moveUnitsPerSecond.space);
transform.Rotate(rotateDegreesPerSecond.value * deltaTime, moveUnitsPerSecond.space);
}
[Serializable]
public class Vector3andSpace
{
public Vector3 value;
public Space space = Space.Self;
}
}
}