Beispiel #1
0
    IEnumerator Start()
    {
        maxSpawnDelay = 4f + PlayerPrefsController.GetDifficultyInReverse();

        while (spawn)
        {
            yield return(new WaitForSeconds(Random.Range(minSpawnDelay, maxSpawnDelay)));

            SpawnAttacker();
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        health = PlayerPrefsController.GetDifficultyInReverse() * 50;

        UpdateHealthPoint();
    }