22 lines
464 B
C#
22 lines
464 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class Rotate : MonoBehaviour
|
|||
|
{
|
|||
|
[SerializeField]
|
|||
|
Vector3 RotateAmount;
|
|||
|
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
RotateAmount = new Vector3(10, 10, 10);
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
gameObject.transform.Rotate(RotateAmount * Time.deltaTime * 10);
|
|||
|
}
|
|||
|
}
|