![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UGUI实例
唐孝辉
QQ:1351105506
微信:xt411526
展开
-
04.卡牌交换逻辑对象池
01.对象池using System;using System.Collections;using System.Collections.Generic;using UnityEngine;/// <summary>/// 卡片对象池/// </summary>public class CardPool{ private List<Tran...原创 2020-03-22 20:36:04 · 192 阅读 · 0 评论 -
03.卡牌拖动交换逻辑
01.卡牌基类接口using System.Collections;using System.Collections.Generic;using UnityEngine;public interface ICard{ void Init();}02.卡牌数据类using System.Collections;using System.Collections.Gene...原创 2020-03-22 13:54:06 · 237 阅读 · 0 评论 -
02.圆形图片实现
1.父物体添加mask02.原创 2020-03-14 20:29:51 · 197 阅读 · 0 评论 -
01.UI和3D物体之间的事件
01.UI和3D物体层叠时,只响应UIpublic class SliderCube : MonoBehaviour{ private int _index; void Start() { _index = 0; } private void OnMouseDown() { ChangeColor(); ...原创 2020-03-12 23:03:40 · 147 阅读 · 0 评论