组件、对象的获取方式
2017-05-20 12:55 梦随烟去 阅读(314) 评论(0) 编辑 收藏 举报private TweenPosition tween;//获取TweenPosition组件()ngui)
public List<InventoryItemGrid> itemGridList = new List<InventoryItemGrid>();//InventoryItemGrid是放在多个UI对象上的一个脚本的名字
public UILabel coinNumberLabel;//获取UI中的Label
void Awake() {
tween = this.GetComponent<TweenPosition>();
}