public virtual void Start() { if (ShowCursor) { Mouse.ShowCursor(); } else { Mouse.HideCursor(); } EntityPicker = new EntityPicker(); EntityPicker.Picked += OnEntitySelected; UI = SceneObject.Instantiate <LevelUI>(Canvas); UI.Header = Header; UI.AddDivider(); OnStart(); }
protected virtual void OnCleanup() { EntityPicker.Destroy(); }