You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			21 lines
		
	
	
		
			567 B
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			567 B
		
	
	
	
		
			C#
		
	
| 
											2 years ago
										 | namespace Game | ||
|  | { | ||
|  |     public class ClipDodge : TimelineClipBase | ||
|  |     { | ||
|  |         private DodgeClip _mRealAsset; | ||
|  |         private int _mLayerBefore; | ||
|  |         public override void OnEnter() | ||
|  |         { | ||
|  |             _mRealAsset = Asset as DodgeClip; | ||
|  |             _mLayerBefore = Util.GetEntityLayer(Owner); | ||
|  |             Util.SetEntityLayer(Owner, UtilPhysics.LayerDodge); | ||
|  |         } | ||
|  |         public override void OnStay() | ||
|  |         { | ||
|  |         } | ||
|  |         public override void OnLeave() | ||
|  |         { | ||
|  |             Util.SetEntityLayer(Owner, _mLayerBefore); | ||
|  |         } | ||
|  |     } | ||
|  | } |