NGUI(三)背包系统页面
来源:互联网 发布:淘宝网副总裁张勤 编辑:程序博客网 时间:2024/05/16 14:27
NGUI(三)背包系统页面
MyDragDropItem:
using UnityEngine;using System.Collections;public class MyDragDropItem : UIDragDropItem {// Use this for initialization protected override void OnDragDropRelease(GameObject surface) { base.OnDragDropRelease(surface); if (surface.tag=="cell") { this.transform.parent = surface.transform; this.transform.localPosition = Vector3.zero; } else if(surface.tag=="MyDragDropItems") { Transform parent = surface.transform.parent; surface.transform.parent = this.transform.parent; surface.transform.localPosition = Vector3.zero; this.transform.parent = parent; this.transform.localPosition = Vector3.zero; } }}
Knapsack:
using UnityEngine;using System.Collections;public class Knapsack : MonoBehaviour { public GameObject[] cells;// Use this for initializationvoid Start () {}// Update is called once per framevoid Update () {}}
0 0
- NGUI(三)背包系统页面
- NGUI之背包系统(1)
- NGUI制作背包系统
- NGUI实现背包系统
- NGUI之背包系统
- 用NGUI制作背包系统
- NGUI 背包系统的拖拽
- NGUI 背包系统的拖拽
- Unity插件NGUI实现背包系统
- 【Unity&NGUI】背包系统崩溃的解决办法
- 【Unity&NGUI】背包系统显示隐藏问题
- 【Unity&NGUI】背包系统物品的累加
- Unity插件NGUI实现背包系统
- NGUI简单背包系统的实现
- 【NGUI】背包
- NGUI学习(三)
- NGUI(一)设置页面
- 新手介绍NGUI背包系统,高手勿喷。
- JavaScript--时间显示小插件
- Android大图片裁剪终极解决方案(下:拍照截图)
- 直接用socket实现HTTP下载
- mysql_fetch_array容易掉入的陷进
- 黑马程序员——走进面向对象
- NGUI(三)背包系统页面
- hdu 5298 Solid Geometry Homework(几何)
- PDM与Excel利用VB脚本进行互导
- ubuntu下搭建rust到intellij开发环境
- XML基本知识
- API注册表函数
- hdu 5299 Circles Game(博弈)
- 翻转子串
- oc构造方法