void Awake() { originalObject.AddComponent<AwakeDetector>(); if (_instance == null) { _instance = this; AwakeDetector.OnAwake += (g) => GameObjectCloned(g); } else { Destroy(this.gameObject); } }
void Awake() { originalObject.AddComponent <AwakeDetector>(); if (_instance == null) { _instance = this; AwakeDetector.OnAwake += (g) => GameObjectCloned(g); } else { Destroy(this.gameObject); } }