mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-18 14:00:18 +00:00
Update samples
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RotateSelf : MonoBehaviour
|
||||
{
|
||||
public Vector3 Axis = Vector3.up;
|
||||
|
||||
private float _speed = 30f;
|
||||
|
||||
void Update()
|
||||
{
|
||||
this.transform.Rotate(Axis, Time.deltaTime * _speed);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user