// Start is called before the first frame update void Start() { if (Instance) { Debug.LogError("Another game instance exists"); Destroy(this); return; } Instance = this; gomoku = new Minimax(); Black = Instantiate(playerPrefab).GetComponent <Player>(); White = Instantiate(playerPrefab).GetComponent <Player>(); Black.Init(Color.black, 1, "Black"); White.Init(Color.white, 2, "White"); ui.Init(); gridBoard.InitializeMatrix(); TogglePlayerColor(); // SetTwoPlayer(); }