private void Start() { if (instance == null) { regTentList = new List <GameObject>(); wavyTentList = new List <GameObject>(); instance = this; } else { Destroy(this); } }
private void OnDestroy() { instance = null; }