資源簡介
網格系統源碼
代碼片段和文件信息
using?UnityEngine;
using?System.Collections;
public?class?GridItem?:?MonoBehaviour?{
????//格子
????private?int?colIndex;?//列下標
????private?int?rowIndex;?//行下標
????public?float?colOffset?=?1.375f;?//列格子之間的偏移量
????public?float?rowOffset?=?0.93f;?//行格子之間的偏移量?
????public?Gameobject?tip;?//保存存有的相應水果提示
//?Use?this?for?initialization
void?Start?()?{
}
//?Update?is?called?once?per?frame
void?Update?()?{
}
????//設置位置
????public?voi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1018??2016-05-25?18:49??GridItem.cs
-----------?---------??----------?-----??----
?????????????????1018????????????????????1
- 上一篇:2048游戲完整(學會界面和邏輯解耦)
- 下一篇:我的世界啟動器
評論
共有 條評論