新增AI-GOAP目标导向计划与ASTAR寻路配合使用
This commit is contained in:
9
source/src/Utils/NumberExtension.ts
Normal file
9
source/src/Utils/NumberExtension.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
module es {
|
||||
export class NumberExtension {
|
||||
public static toNumber(value){
|
||||
if (value == undefined) return 0;
|
||||
|
||||
return Number(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user