浏览代码

Spinning UI element script for loading screen

/main
Amel Negra 4 年前
当前提交
2cfbb2ea
共有 2 个文件被更改,包括 30 次插入0 次删除
  1. 19
      UOP1_Project/Assets/Scripts/SceneManagement/SpinningUI.cs
  2. 11
      UOP1_Project/Assets/Scripts/SceneManagement/SpinningUI.cs.meta

19
UOP1_Project/Assets/Scripts/SceneManagement/SpinningUI.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpinningUI : MonoBehaviour
{
private RectTransform rectComponent;
public float rotateSpeed = 200f;
private void Start()
{
rectComponent = GetComponent<RectTransform>();
}
private void Update()
{
rectComponent.Rotate(0f, 0f, rotateSpeed * Time.deltaTime);
}
}

11
UOP1_Project/Assets/Scripts/SceneManagement/SpinningUI.cs.meta


fileFormatVersion: 2
guid: 640955832ea89fd4a905f72984aa62ec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存