smoothCamera

This commit is contained in:
ckcz123 2019-10-23 20:23:37 +08:00
parent 633c570557
commit 005440fc36
2 changed files with 11 additions and 1 deletions

View File

@ -20,6 +20,12 @@ var plugins_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_range": "typeof(thiseval)=='string' || thiseval==null",
"_data": "绘制灯光效果"
},
"smoothCamera": {
"_leaf": true,
"_type": "textarea",
"_range": "typeof(thiseval)=='string' || thiseval==null",
"_data": "平滑移动镜头效果"
},
}
if (obj[key]) return obj[key];
return {

View File

@ -87,12 +87,16 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
},
"smoothCamera": function () {
// 是否启用本插件,默认不启用
this.__enableSmoothCamera = false;
if (!this.__enableSmoothCamera) return;
this.Camera = function () {
// 下面这个变量决定本插件的开关
// 你可以在游戏中使用core.setFlag('smoothCamera',false)来关闭本插件的功能
// 同时也可以core.setFlag('smoothCamera',true)重新开启
// 本插件默认开启
// 此项默认为true
//
this.__switchName = 'smoothCamera';