You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
583 B
28 lines
583 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class btnRoll : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
Image btnAuto;
|
|
[SerializeField]
|
|
Sprite autoSprite;
|
|
[SerializeField]
|
|
Sprite nonAutoSprite;
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (BattleMgr.GetAuto())
|
|
{
|
|
btnAuto.sprite = autoSprite;
|
|
//transform.Rotate(Vector3.back * Time.deltaTime * 0f);
|
|
}
|
|
else
|
|
{
|
|
btnAuto.sprite = nonAutoSprite;
|
|
}
|
|
}
|
|
}
|