Added many other

This commit is contained in:
2026-08-06 18:56:32 +03:00
parent 9f2fd08ee5
commit d9d7ee49d2
2144 changed files with 1115424 additions and 1284 deletions
@@ -0,0 +1,23 @@
using UnityEngine;
using System.Collections;
public class RotateGameObject : MonoBehaviour {
public float rot_speed_x=0;
public float rot_speed_y=0;
public float rot_speed_z=0;
public bool local=false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void FixedUpdate () {
if (local) {
transform.RotateAroundLocal(transform.up, Time.fixedDeltaTime*rot_speed_x);
} else {
transform.Rotate(Time.fixedDeltaTime*new Vector3(rot_speed_x,rot_speed_y,rot_speed_z), Space.World);
}
}
}