private void InitializeGame() { SceneService.InitializeCamera(); IsPlayerInputAllowed = true; TileGridService.PopulateTilesGrid(); GamePieceGridService.FillEmptyGamePieceGridSlots(10, 0.5f); // they are all empty in the beginning }
/// <summary> /// Initialize the tile with the given values. (x,y) represent its location /// </summary> /// <param name="x">(x,y) represent its location in the tiles grid</param> /// <param name="y">(x,y) represent its location in the tiles grid</param> /// <param name="board">A reference to the parent game board</param> public virtual void Initialize(int x, int y, TileGridService tileGridService) { if (tileGridService == null) { throw new System.ArgumentException("Invalid tileGridService; it cannot be null!"); } this.x = x; this.y = y; this.tileGridService = tileGridService; }
public override void Initialize(int x, int y, TileGridService tileGridService) { base.Initialize(x, y, tileGridService); RenderBreakingSprite(); }