mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交拖拽阵法
This commit is contained in:
@@ -44,6 +44,11 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
get isDie(){ return this._isDie}
|
||||
set isDie(value:boolean){
|
||||
this._isDie = value;
|
||||
if(this.isDie){
|
||||
//如果死亡则关闭状态机
|
||||
//关闭状态机
|
||||
this.fsm.close();
|
||||
}
|
||||
}
|
||||
|
||||
//受击回调
|
||||
|
@@ -39,6 +39,8 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
//设置死亡状态
|
||||
this.fsmAnim.isDie = value;
|
||||
if(this.isDie){
|
||||
//关闭状态机
|
||||
this.fsm.close();
|
||||
//死亡回调
|
||||
this.killBack.forEach(fun => fun(this));
|
||||
}
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "eacc8f2a-91b5-4bb6-b11b-6f1c688fdcf0",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
import { JNGSyncProtoBase } from "../../../../components/JNComponent";
|
||||
import GRoleBase from "../GRoleBase";
|
||||
|
||||
|
||||
/**
|
||||
* 扩展类基类 用于代码动态添加 角色脚本的类
|
||||
*/
|
||||
export default class GRoleExpandBase<T> extends JNGSyncProtoBase<T>{
|
||||
|
||||
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "bba56115-aac1-4e5e-bc8e-087bf92232a3",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "90bf5822-cd37-491b-a89b-182bbcec4c49",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
import { _decorator } from "cc";
|
||||
import GRoleDefault from "../../GRoleDefault";
|
||||
import GRoleExpandBase from "../GRoleExpandBase";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/**
|
||||
* 角色 无限模式 扩展类
|
||||
*/
|
||||
@ccclass('GRoleDefault')
|
||||
export default class GRoleOnHookExpand extends GRoleExpandBase<{}>{
|
||||
|
||||
//角色Id
|
||||
petId:number;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "edf60f56-5d3e-48d1-90b4-6deef4b5635c",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user