Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user