This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
flutter-unity-view-widget/example/unity/DemoApp/Assets/Rotate.cs

22 lines
464 B
C#
Raw Normal View History

2019-03-28 14:13:39 -04:00
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);
}
}