예제 #1
0
 private String selectItemToSpawn(SpawnersContext c)
 {
     if (count == c.treeVariants.Length)
     {
         count = 0;
     }
     return(c.treeVariants[count++].name);
 }
예제 #2
0
 private String selectItemToSpawn(SpawnersContext c)
 {
     /*
      * Random.next
      * c.itemRaritiCurve
      * todo map curve to possible items array
      */
     return("Item");
 }
예제 #3
0
        public IAIContext GetContext(Guid aiId)
        {
            SpawnersContext c = new SpawnersContext
            {
                itemPlaces       = new List <Vector3>(), componentAI = componentAI, itemRarityCurve = itemRarityCurve,
                enemyRarityCurve = enemyRarityCurve, itemsSorted = itemsSorted, enemiesSorted = enemiesSorted,
                terrainData      = tData, treeVariants = treeVariants
            };

            return(c);
        }
예제 #4
0
 private String selectEnemyToSpawn(SpawnersContext c)
 {
     return("Enemy");
 }