31 lines
		
	
	
		
			597 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			31 lines
		
	
	
		
			597 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System.Collections; | |||
|  | using System.Collections.Generic; | |||
|  | using UnityEngine; | |||
|  | 
 | |||
|  | public class ExtraManager : S_MonoSingleton<ExtraManager> | |||
|  | { | |||
|  |     private ExtraAvatar mAvatar; | |||
|  | 
 | |||
|  |     protected override void Initialize() | |||
|  |     { | |||
|  |         base.Initialize(); | |||
|  | 
 | |||
|  |         mAvatar = GetComponentInChildren<ExtraAvatar>(); | |||
|  |         mAvatar.StopMoving(); | |||
|  |     } | |||
|  | 
 | |||
|  |     public void RestartAvatar() | |||
|  |     { | |||
|  |         mAvatar.Restart(); | |||
|  |     } | |||
|  | 
 | |||
|  |     public void StopMoving() | |||
|  |     { | |||
|  |         mAvatar.StopMoving(); | |||
|  |     } | |||
|  | 
 | |||
|  |     public void EnableInteraction(bool pEnabled) | |||
|  |     { | |||
|  |         mAvatar.EnableInteraction(pEnabled); | |||
|  |     } | |||
|  | } |