private void Awake() { if (instance != null) { Destroy(this); return; } instance = this; if (this.EntityObjectPool == null) { this.EntityObjectPool = (EntityObjectPool)FindObjectOfType(typeof(EntityObjectPool)); } if (this.GameBehaviour != null) { this.GameBehaviour.GameChanged += this.OnGameChanged; } }