// ensure singleton design void Awake() { if (populationControl == null) { DontDestroyOnLoad (gameObject); populationControl = this; } else if (populationControl != this) { Destroy(gameObject); } }