// Use this for initialization void Awake() { if (hazardPoolInstance == null) { hazardPoolInstance = this; } else { Destroy(gameObject); } }
private void Awake() { SharedInstance = this; }