Пример #1
0
    private IEnumerator CountdownSpawn()   //could use the turn start event (playermanager) here to optimize
    {
        double startingTurn = gameManager.turnCount;

        while (startingTurn + turnsTillSpawn > gameManager.turnCount)
        {
            yield return(null);
        }

        List <Vector3Int> possibleTiles = GridHelper.AllStandableTiles(player1);

        SpawnChest(startingChestLoc); //can also use possibleTiles
    }