Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        if (DifficultyController.DifficultyProgress() < min || DifficultyController.DifficultyProgress() > max)
        {
            gameObject.SetActive(false);

            /*if (DifficultyController.DifficultyProgress() < min)
             *  Debug.Log("Current difficulty too low, despawning!");
             * else
             *  Debug.Log("Current difficulty too high, despawning!");*/
        }
    }