mirror of
https://gitee.com/ruanwujing/green-pack-cocos
synced 2025-10-09 16:46:17 +00:00
简单随机地穴示例
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user