private void OnDestroy() { if (singleton == this) { singleton = null; } }
protected virtual void Awake() { if (singleton == null) { singleton = this; playedThisRound = new HashSet <PTPlayer>(); StartCoroutine(Rule()); } else if (singleton != this) { Destroy(this); } }