Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        gridManager grid = target as gridManager;

        grid.InitializeGrid();
    }
Exemplo n.º 2
0
    public void startGame()
    {
        GameObject  newGame = Instantiate(gridPrefab);
        gridManager newGrid = newGame.GetComponent <gridManager>();

        newGrid.gridSize = (int)boardSize.value;
        newGame.GetComponentInChildren <noughtsNCrossesAI>().hardMode = hardmode.isOn;
        UI.SetActive(false);
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     gameInfoManager = GameObject.Find("gameInfoManager");
     gm     = GameObject.Find("grid").GetComponent <gridManager>();
     upTile = GameObject.Find("tileUI").GetComponent <updateTileUI>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     gameInfoManager = GameObject.Find("gameInfoManager");
     gm = GameObject.Find("grid"  ).GetComponent<gridManager>();
     upTile = GameObject.Find("tileUI").GetComponent<updateTileUI>();
 }
Exemplo n.º 5
0
 void Start()
 {
     grid      = transform.parent.GetComponent <gridManager>();
     keepTrack = transform.parent.GetComponent <keepTrackOfTurn>();
 }