public void createPlayerBubble() { Random rand = new Random(); BallsTypes type = (BallsTypes)rand.Next(1, 5); IGameObject gameObject = GameObjectsPool.getOrCreateFromPool(type, isPlayer: true); currentPlayerBall = gameObject; }
public void createGameObject(int row, int col, BallsTypes type) { IGameObject gameObject = GameObjectsPool.getOrCreateFromPool(type, row, col); field.Add(gameObject.id, gameObject); if (gameObject.row > LAST_VISIBLE_ROW) { gameObject.view.setActive = false; } }