private void Awake() { Ins = this; var sel = from Transform trans in RespawnerContainer select trans.GetComponent <Respawner>(); _Respawners = sel.ToArray(); foreach (var respawner in _Respawners) { respawner.Init(() => Difficulty); respawner.enabled = false; } }
private void OnDestroy() { Ins = null; }