简单随机地穴示例

This commit is contained in:
ruanwujing
2024-02-02 11:47:09 +08:00
parent c9a7906dfd
commit 87d7bbf3b8
13 changed files with 1673 additions and 7 deletions

View File

@@ -26,10 +26,10 @@ export enum EasingString {
}
@ccclass('GPDrag')
export class GPDrag extends Component {
@property({type:CCBoolean, tooltip:"触碰点偏移量敏感"})
@property({tooltip:"触碰点偏移量敏感"})
public touchOffsetSensitive = true
@property({type:CCBoolean, tooltip:"失败时回到起始位置"})
@property({tooltip:"失败时回到起始位置"})
public backHomeWhenFailed = true
@property({type:Enum(DragBackHomeType), tooltip:"回家的方式", visible:function(this){
@@ -56,7 +56,7 @@ export class GPDrag extends Component {
}})
public topLayerNode:Node
@property({type:CCBoolean, tooltip:"松开后返回原来的层级", visible:function(){
@property({tooltip:"松开后返回原来的层级", visible:function(){
return this.floatType != FloatType.None
}})
public backToOriZ = true;