Example #1
0
 // Use this for initialization
 protected override void Awake()
 {
     spawnerType = AI.EnemyTypes.Worm;
     maxEnemies = 10;
     maxSpawnable = 10;
     spawnedEnemies = 0;
     spawned = 0;
     timeToSpawn = 5;
 }
Example #2
0
 protected override void UpdateVariables(List<HackMenuControl.menuVariable> updatedVars)
 {
     maxSpawnable = (uint)updatedVars[0].value;
     timeToSpawn = (uint)updatedVars[1].value;
     ally = (bool)variables[2].value;
     spawnerType = (AI.EnemyTypes)variables[3].value;
     if (ally)
         hackRate = 0;
     else
         hackRate = UnityEngine.Random.Range(0, 100) / 100.0f;
 }