public void Awake() { if (Instance != null) { Destroy(Instance); } Instance = this; }
public void OnDestroy() { Debug.Log($"{ModTag} {target.GetItemName()} OnDestroy."); if (Instance == this) { Destroy(this); Instance = null; } }
public void Awake() { if (Instance != null) { Destroy(Instance); } Instance = this; }
public void OnDestroy() { Debug.Log($"{ModTag} {target.GetItemName()} OnDestroy."); if (Instance == this) { Destroy(this); Instance = null; } }