@雨霧星天 不用Lambda表達式 是為了支持多平臺 因為 Lambda表達式是依賴 .NET 類庫中的Linq 但是IOS 是不支持.NET的類庫。所以想要發布的支持多平臺 就是盡量避免使用Lamba表達式 IOS 倒是有一個支持linq類庫的插件 但是需要付費 你想想咱們大中華地區 能用盜版誰去用正版 所以那個也麻煩 就避免了
2016-10-26
兩個問題,一個是input視頻中沒有給出應有的狀態,應該要return "fall";這個狀態。然后第二個是,doFall()函數里面,如一樓所說的,要讓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[]
這個報錯的是因為 list是整個數組不是數組中某個元素。
list_ = this.GetComponentsInChildren<Square> ();
等號右邊 getcomponent要加s
void Awake()
{
list_ = this.GetComponentInChildren<Square> ();
Cannot implicitly convert type Square to Square[]
這個報錯的是因為 list是整個數組不是數組中某個元素。
list_ = this.GetComponentsInChildren<Square> ();
等號右邊 getcomponent要加s
2016-09-01
界面切換沒那么復雜,直接隱藏當前頁,顯示目標頁就好了。吧簡單東西做的如此復雜。 狀態機在控制游戲邏輯中確實很有用,但界面切換根本用不著。
2016-08-18