Example #1
0
    void Start()
    {
        EnemyTypes.CalculateWeightTotal();

        InitialWeights = new float[EnemyTypes.Objects.Length];

        for (int i = 0; i < EnemyTypes.Objects.Length; i++)
        {
            InitialWeights[i] = EnemyTypes.Objects[i].Weight;
        }

        InitialSpawnCount  = SpawnCount;
        InitialRoundLength = RoundLength;
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     Singleton = this;
     PickupTypes.CalculateWeightTotal();
 }