Hit Detection
This commit is contained in:
parent
1992428a14
commit
871c978301
225 changed files with 210834 additions and 237 deletions
15
Assets/Scripts/Rotate.cs
Normal file
15
Assets/Scripts/Rotate.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Rotate : MonoBehaviour
|
||||
{
|
||||
public Vector3 Axis;
|
||||
|
||||
public float Speed;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.localRotation *= Quaternion.AngleAxis(Speed * Time.deltaTime, Axis);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue