add change trains
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using DG.Tweening;
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(CanvasGroup))]
|
||||
public class UIHelp : MonoBehaviour
|
||||
{
|
||||
private CanvasGroup canvasGroup;
|
||||
|
||||
void Start()
|
||||
{
|
||||
canvasGroup = GetComponent<CanvasGroup>();
|
||||
}
|
||||
|
||||
public void OK()
|
||||
{
|
||||
canvasGroup.DOFade(0, .4f)
|
||||
.OnComplete(() => gameObject.SetActive(false));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user