using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Inventory : MonoBehaviour {

public static Inventory _instance;
private TweenPosition tween;//获取组件
void Awake() {
_instance = this;
tween = this.GetComponent<TweenPosition>();//获取组件
}
void Update () {

}

//需要播放的UI动画是从UI界面外移到UI界面里
public void Show() {
tween.PlayForward();//播放动画

}
public void Hide() {
tween.PlayReverse();//反向播放动画
}
}

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-08-17
  • 2021-05-10
  • 2021-08-10
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-07-30
  • 2021-10-10
相关资源
相似解决方案