public virtual void ActivateGoForever(GameObject go) { if (Instance != this) { Instance.ActivateGoForever(go); return; } go.SetActive(true); disabledGosString = disabledGosString.Replace(go.name + STRING_SEPERATOR, ""); if (!enabledGosString.Contains(go.name)) { enabledGosString += go.name + STRING_SEPERATOR; } }
public virtual void ActivateGoForever(string goName) { if (Instance != this) { Instance.ActivateGoForever(goName); return; } for (int i = 0; i < registeredGos.Count; i++) { if (goName == registeredGos[i].name) { ActivateGoForever(registeredGos[i]); return; } } }