static void Main(string[] args) { Console.SetWindowSize(55, 55); GameboardController GameboardController = new GameboardController(); GameboardController.Render(); Console.ReadLine(); }
// Use this for initialization void Start() { Board = GameObject.FindGameObjectWithTag("Gameboard"); GBController = Board.GetComponent <GameboardController>(); P1Character = GameObject.FindGameObjectWithTag("P1"); P2Character = GameObject.FindGameObjectWithTag("P2"); NPCCharacters = GameObject.FindGameObjectsWithTag("Character"); CManager = Camera.main.GetComponent <CardManager>(); NPCCurrentChoices = new int[NPCCharacters.Length]; ResetInputs(); P1InputNames = new string[6] { "P1_Choose1", "P1_Choose2", "P1_Choose3", "P1_Choose4", "P1_Choose5", "P1_Choose6" }; P2InputNames = new string[6] { "P2_Choose1", "P2_Choose2", "P2_Choose3", "P2_Choose4", "P2_Choose5", "P2_Choose6" }; }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); gameboard = GameObject.FindGameObjectWithTag("Gameboard").GetComponent <GameboardController>(); // Set the reference of the tile to the entity on top GameObject tile = gameboard.GetTileAtCoordinate(transform.position.x, transform.position.y); if (tile != null) { tile.GetComponent <TileClass>().entity = gameObject; } TileClass tc = gameboard.GetTileAtCoordinate(transform.position.x, transform.position.y).GetComponent <TileClass>(); if (tc != null) { currentTile = tc; nextTile = tc; } // Set order in layer renderer.sortingOrder = (int)transform.position.y * -2; }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); gameboard = GameObject.FindGameObjectWithTag("Gameboard").GetComponent <GameboardController>(); }