Example #1
0
 // Update is called once per frame
 void DoIT()
 {
     //if (!generationDone && WorldGenerator.instance.isReady)
     {
         //generationDone = true;
         foreach (Vector3 position in positions.Keys)
         {
             POI.Create(position, positions[position], position == current);
         }
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        maxX = xSize;
        maxY = ySize;

        POIs = new List <POI>();
        if (randomizeSeed)
        {
            seed = Random.Range(int.MinValue, int.MaxValue);
        }
        Random.InitState(seed);
        nbOfPOI = seed % maxPOI;
        for (int i = 0; i < nbOfPOI; i++)
        {
            /*POI newPOI = */ POI.Create(Random.Range(int.MinValue, int.MaxValue));
        }
    }