private void OnDisable() { if (instance == this) { instance = null; } }
private void OnEnable() { if (instance != null) { Destroy(this); return; } else { instance = this; } attentionCallers.AddRange( FindObjectsOfType <AiAttentionCaller>() ); }