()
| 867 | } |
| 868 | |
| 869 | public dispose(): void { |
| 870 | this.removeFromParent(); |
| 871 | this._relations?.dispose(); |
| 872 | if (this._displayObject) { |
| 873 | this._displayObject.dispose(); |
| 874 | this._displayObject = null; |
| 875 | } |
| 876 | for (let i = 0; i < 10; i++) { |
| 877 | const gear = this._gears[i]; |
| 878 | if (gear) { |
| 879 | gear.dispose(); |
| 880 | } |
| 881 | } |
| 882 | super.dispose(); |
| 883 | } |
| 884 | |
| 885 | // Display object creation | 显示对象创建 |
| 886 |
nothing calls this directly
no test coverage detected