首页 > 其他 > 详细

NGUI中的Tween Position动画

时间:2017-05-20 12:52:57      阅读:199      评论:0      收藏:0      [点我收藏+]

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();//反向播放动画
}
}

NGUI中的Tween Position动画

原文:http://www.cnblogs.com/panyuyi/p/6881886.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!