20 lines
		
	
	
		
			457 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			457 B
		
	
	
	
		
			C#
		
	
	
	
| using UnityEngine;
 | |
| using System.Collections;
 | |
| 
 | |
| [AddComponentMenu("EasyTouch Controls/Set Direct Action Transform ")]
 | |
| public class ETCSetDirectActionTransform : MonoBehaviour {
 | |
| 
 | |
| 	public string axisName1;
 | |
| 	public string axisName2;
 | |
| 
 | |
| 	void Start(){
 | |
| 		if (!string.IsNullOrEmpty(axisName1)){
 | |
| 			ETCInput.SetAxisDirecTransform(axisName1, transform);
 | |
| 		}
 | |
| 
 | |
| 		if (!string.IsNullOrEmpty(axisName2)){
 | |
| 			ETCInput.SetAxisDirecTransform(axisName2, transform);
 | |
| 		}
 | |
| 	}
 | |
| }
 |