Esempio n. 1
0
    void Start()
    {
        //Set up game_board and board_script
          if (game_board == null)
          {
          	game_board = GameObject.Find ("Board");
          }
          board_script = game_board.GetComponent<boardControl>();

          main_cam = GameObject.Find("MainCamera");

          //Link to the board squares game object arrays
          bsq_grid = board_script.board_sqs;

          ClearUnitGrid();
    }
Esempio n. 2
0
    private boardControl board_script; //this is the script for the game board, set in START

    #endregion Fields

    #region Methods

    void Start()
    {
        board_script = game_board.GetComponent <boardControl>();
    }