void Awake () { // 初始化成员变量 gridDic = new Dictionary <string, Grid [,]> (); gc = GameObject.FindGameObjectWithTag ("GameController").GetComponent <GameController> (); }