/// <summary> /// 初始UI /// </summary> private void InitUI() { return_button.onClick.Set(OnReturnClick); GameManager.Instance.Sweets = new GameSweet[PlayerInfo.Instance.xColumn, PlayerInfo.Instance.yRow]; for (int x = 0; x < PlayerInfo.Instance.xColumn; x++) { for (int y = 0; y < PlayerInfo.Instance.yRow; y++) { GameSweet gameSweet = PoolsManager.Instance.GetSweetObj(); gameSweet.InitSweet(parents_com); gameSweet.SetXY(x, y); GameManager.Instance.Sweets[x, y] = gameSweet; } } GameManager.Instance.StartFill(); }