Sandbox.ISceneEventElement 't' not allowed
protected override void OnParentChanged( GameObject oldParent, GameObject newParent ) { IParentAssignEvents.PostToGameObject( oldParent, x => x.OnUnassigned( this ) ); IParentAssignEvents.PostToGameObject( newParent, x => x.OnAssigned( this ) ); }
protected override void OnParentChanged( GameObject oldParent, GameObject newParent ) { if (oldParent != Scene) IParentAssignEvents.PostToGameObject( oldParent, x => x.OnUnassigned( this ) ); if (newParent != Scene) IParentAssignEvents.PostToGameObject( newParent, x => x.OnAssigned( this ) ); }