111
This commit is contained in:
23
SetState/SetState_ATGunner.nut
Normal file
23
SetState/SetState_ATGunner.nut
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
文件名:SetState_ATGunner.nut
|
||||
路径:SetState/SetState_ATGunner.nut
|
||||
创建日期:2022-09-04 20:19
|
||||
文件用途:女枪手设置状态函数
|
||||
*/
|
||||
|
||||
if (!getroottable().rawin("setState_ATGunner_Table")) setState_ATGunner_Table <- {}
|
||||
function setState_ATGunner(obj, state, datas, isResetTimer) {
|
||||
if (!obj)
|
||||
return;
|
||||
setState_All(obj, state, datas, isResetTimer);
|
||||
|
||||
//根据主状态判断执行函数
|
||||
if (setState_ATGunner_Table.rawin(state) == true) {
|
||||
foreach (Flag,Func in setState_ATGunner_Table[state]) {
|
||||
Func(obj, state, datas, isResetTimer);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user