void Awake() { if (S == null) { S = this; } else if (S != null) { Destroy(this); } }
public string addReport(string itemID, string reason) { string id = getID(); if (id == null) { return(itemID); } AccusationManager.itemAccusation(id, itemID, reason); return(itemID); }
void Awake() { if (S == null) { S = this; } else if (S != null) { Destroy(this); } DontDestroyOnLoad(gameObject); //For now, needs to be inactive so that it can find things OnEnable gameObject.SetActive(false); }