You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
511 B
C#
23 lines
511 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Unity.BossRoom.Gameplay.UI
|
|
{
|
|
/// <summary>
|
|
/// A Temporary animation script that rotates the image on the game
|
|
/// </summary>
|
|
[RequireComponent(typeof(Image))]
|
|
public class ConnectionAnimation : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private float m_RotationSpeed;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(new Vector3(0, 0, m_RotationSpeed * Mathf.PI * Time.deltaTime));
|
|
}
|
|
}
|
|
}
|
|
|