예제 #1
0
 // TODO: convert to coroutine to do this gradually
 // TODO: animation for this (Playe pop sound, visual cue ...)
 public void DespawnAll()
 {
     state = PersonalTideState.LowTide;
     for (var i = spawned.Count - 1; i >= 0; i--)
     {
         MoveItem(spawned, prevSpawned, i, false);
     }
 }
예제 #2
0
    public void OnHighTide()
    {
        if (state == PersonalTideState.HighTide)
        {
            return;
        }

        state = PersonalTideState.HighTide;
        var spawnCount = config.initialSpawnCount + (config.spawnScaling * tideCount);

        tideCount += 1;
        SpawnStuff((int)Mathf.Floor(spawnCount));
    }