Game的畫布一直是3D的,怎么調(diào)成2D改成純色的屏幕
@雨霧星天 不用Lambda表達(dá)式 是為了支持多平臺(tái) 因?yàn)?Lambda表達(dá)式是依賴 .NET 類庫中的Linq 但是IOS 是不支持.NET的類庫。所以想要發(fā)布的支持多平臺(tái) 就是盡量避免使用Lamba表達(dá)式 IOS 倒是有一個(gè)支持linq類庫的插件 但是需要付費(fèi) 你想想咱們大中華地區(qū) 能用盜版誰去用正版 所以那個(gè)也麻煩 就避免了
2016-10-26
兩個(gè)問題,一個(gè)是input視頻中沒有給出應(yīng)有的狀態(tài),應(yīng)該要return "fall";這個(gè)狀態(tài)。然后第二個(gè)是,doFall()函數(shù)里面,如一樓所說的,要讓c = fall;
fallCube.number = c.number;
c.isEnable = false;
fallCube.isEnable = true;
c = fallCube;//這里
fallCube.number = c.number;
c.isEnable = false;
fallCube.isEnable = true;
c = fallCube;//這里
2016-09-19
private Square[] list_ = null;
void Awake()
{
list_ = this.GetComponentInChildren<Square> ();
Cannot implicitly convert type Square to Square[]
這個(gè)報(bào)錯(cuò)的是因?yàn)?list是整個(gè)數(shù)組不是數(shù)組中某個(gè)元素。
list_ = this.GetComponentsInChildren<Square> ();
等號(hào)右邊 getcomponent要加s
void Awake()
{
list_ = this.GetComponentInChildren<Square> ();
Cannot implicitly convert type Square to Square[]
這個(gè)報(bào)錯(cuò)的是因?yàn)?list是整個(gè)數(shù)組不是數(shù)組中某個(gè)元素。
list_ = this.GetComponentsInChildren<Square> ();
等號(hào)右邊 getcomponent要加s
2016-09-01
界面切換沒那么復(fù)雜,直接隱藏當(dāng)前頁,顯示目標(biāo)頁就好了。吧簡單東西做的如此復(fù)雜。 狀態(tài)機(jī)在控制游戲邏輯中確實(shí)很有用,但界面切換根本用不著。
2016-08-18