ForestData.cs 442 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. public class ForestData : MonoBehaviour
  4. {
  5. public static float spawnRate = .1f;
  6. public static float minHeight = 8f;
  7. public static float maxHeight = 13f;
  8. public static Queue<Vector3> spawnable = new Queue<Vector3>();
  9. //Tricky
  10. public GameObject[] TreesTemp;
  11. public static GameObject[] Trees;
  12. private void Awake()
  13. {
  14. Trees = TreesTemp;
  15. }
  16. }