0a1fce450c
- 删除三套旧菜单系统 (MainMenu.cs, MainMenuUI.cs, ModeSelectionUI.cs) - Ground 添加 BoxCollider 并设置 tag 为 Ground - UIManager.OnReturnClicked 改为通过 PageController 返回首页 - PageController 增加 ReturnToHome 方法,管理 BtnFixationBack 可见性 - 清理废弃场景 Experiment.unity / ModeSelection.unity 及历史截图
61 lines
1.2 KiB
JavaScript
61 lines
1.2 KiB
JavaScript
/*!
|
|
* merge-descriptors
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*/
|
|
|
|
'use strict'
|
|
|
|
/**
|
|
* Module exports.
|
|
* @public
|
|
*/
|
|
|
|
module.exports = merge
|
|
|
|
/**
|
|
* Module variables.
|
|
* @private
|
|
*/
|
|
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty
|
|
|
|
/**
|
|
* Merge the property descriptors of `src` into `dest`
|
|
*
|
|
* @param {object} dest Object to add descriptors to
|
|
* @param {object} src Object to clone descriptors from
|
|
* @param {boolean} [redefine=true] Redefine `dest` properties with `src` properties
|
|
* @returns {object} Reference to dest
|
|
* @public
|
|
*/
|
|
|
|
function merge (dest, src, redefine) {
|
|
if (!dest) {
|
|
throw new TypeError('argument dest is required')
|
|
}
|
|
|
|
if (!src) {
|
|
throw new TypeError('argument src is required')
|
|
}
|
|
|
|
if (redefine === undefined) {
|
|
// Default to true
|
|
redefine = true
|
|
}
|
|
|
|
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName (name) {
|
|
if (!redefine && hasOwnProperty.call(dest, name)) {
|
|
// Skip descriptor
|
|
return
|
|
}
|
|
|
|
// Copy descriptor
|
|
var descriptor = Object.getOwnPropertyDescriptor(src, name)
|
|
Object.defineProperty(dest, name, descriptor)
|
|
})
|
|
|
|
return dest
|
|
}
|