46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| /*
 | |
| 文件名:Swordman13State.nut
 | |
| 路径:character/Swordman/Swordman13State.nut
 | |
| 创建日期:2022-09-10	17:39
 | |
| 文件用途:鬼剑士13号状态
 | |
| */
 | |
| 
 | |
| if (!getroottable().rawin("onSetState_Swordman13State_Table")) onSetState_Swordman13State_Table <- {}
 | |
| 
 | |
| function onSetState_Swordman13State(obj, state, datas, isResetTimer) {
 | |
| 
 | |
|     //遍历并执行函数
 | |
|     foreach(Flag, Func in onSetState_Swordman13State_Table) {
 | |
|         Func(obj, state, datas, isResetTimer);
 | |
|     }
 | |
|     //return 1;
 | |
| }
 | |
| 
 | |
| 
 | |
| if (!getroottable().rawin("onEndCurrentAni_Swordman13State_Table")) onEndCurrentAni_Swordman13State_Table <- {}
 | |
| 
 | |
| function onEndCurrentAni_Swordman13State(obj)
 | |
| {
 | |
|     if(!obj) return;
 | |
| 
 | |
|     //遍历并执行函数
 | |
|     foreach(Flag, Func in onEndCurrentAni_Swordman13State_Table) {
 | |
|         Func(obj);
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 | |
| 
 | |
| if (!getroottable().rawin("onKeyFrameFlag_Swordman13State_Table")) onKeyFrameFlag_Swordman13State_Table <- {}
 | |
| 
 | |
| function onKeyFrameFlag_Swordman13State(obj, flagIndex)
 | |
| {
 | |
|     if (!obj) return false;
 | |
| 
 | |
|     //遍历并执行函数
 | |
|     foreach(Flag, Func in onKeyFrameFlag_Swordman13State_Table) {
 | |
|         Func(obj, flagIndex);
 | |
|     }
 | |
| 
 | |
|     return true;
 | |
| } |