using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameController : MonoBehaviour【“GameController”命名空间被占用怎么搞?】
{
//单例
public static GameController Instance;
//数组,用来存储棋盘中的所有方块
public Tile[,] allTileArray;
//棋盘左下角方格的位置
private Vector3 chessboardBasePosition;
//数组,棋盘中所有方格的标准位置
private Vector3[,] chessboardStatanderdPositionArray;
//棋盘
public Transform chessboard;
private void Awake()【这行Awake报错】
{
//单列赋值
Instance = this;
}
private void Start()
{
//在棋盘中创建所有方块
CreatAllTilesInChessboard();
}
void Update()
{
}
//方法,在棋盘中创建所有方块
private void CreatAllTilesInChessboard()【这行“CreatAllTilesInChessboard()”报错】
{
}
}