Initialisation

This commit is contained in:
darriyano
2025-04-26 18:30:58 +03:00
commit 6737be11fc
353 changed files with 41379 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotationSimple : MonoBehaviour
{
public float interval = 10f;
private float t;
// Start is called before the first frame update
void Start()
{
t = 0f;
}
// Update is called once per frame
void Update()
{
t += Time.deltaTime;
float rotation = t / interval * 360f;
transform.rotation = Quaternion.Euler(0f, rotation, 0f);
}
}