コード例 #1
0
ファイル: MoveOnClick.cs プロジェクト: Mafmax/UnityPractice2
 // Start is called before the first frame update
 void Start()
 {
     GizmosRadius = this.gameObject.transform.localScale.x / 2f;
     Driver       = new AstarMoveController(this.gameObject, speed, FindObjectOfType <Canvas>());
     Debug.Log(Driver.IsEnable);
     Driver.Enable();
     Debug.Log(Driver.IsEnable);
     TargetClick = new TargetClick(this.gameObject);
     texts       = canvas.GetComponentsInChildren <Text>();
 }
コード例 #2
0
ファイル: TargetClick.cs プロジェクト: chacorp/Fitts_Law_test
 TargetClick()
 {
     Instance = this;
 }