Files
2026-06-26 22:41:39 +05:30

20 lines
432 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Demo_TurningAround : MonoBehaviour
{
public float rotSpeed_X;
public float rotSpeed_Y;
public float rotSpeed_Z;
public float globalSpeed = 1f;
// Update is called once per frame
void Update()
{
transform.Rotate(new Vector3(rotSpeed_X, rotSpeed_Y, rotSpeed_Z) * globalSpeed * Time.deltaTime);
}
}