public void Destroy() { SceneObject.DelEvent((int)SceneObject.SceneObjectEvent.OnAddComponent, OnSceneObjectAddComponent); SceneObject.DelEvent((int)SceneObject.SceneObjectEvent.OnRemoveComponent, OnSceneObjectRemoveComponent); SceneObject.DelEvent((int)SceneObject.SceneObjectEvent.Executedisplayaction, PlayDisplayAction); SceneObject.DelEvent((int)SceneObject.SceneObjectEvent.Stopdisplayaction, StopDisplayAction); }