protected override void Initialize() { base.Initialize(); this.objectAction = new ObjectAction(path); this.screenplay = this.EntityManager.Find("ScreenplayManager").FindComponent<ScreenplayManager>(); }
protected override void Initialize() { base.Initialize(); this.objectAction = new ObjectAction(path); var screenPlayEntity = this.EntityManager.Find("ScreenplayManager"); if (screenPlayEntity != null) { this.screenplay = screenPlayEntity.FindComponent<ScreenplayManager>(); } }