示例#1
0
 private void FixedUpdate()
 {
     toNextFoodSpawn--;
     if (toNextFoodSpawn <= 0)
     {
         toNextFoodSpawn = 60;
         var spawnName = Random.value < .75f ? "food" : "bigfood";
         banks[spawnName].Spawn <MazeBody>(GetEntLot("food")).Setup(master, foodSpawnPoints.GetRandom());
     }
 }