Example #1
0
 // 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>();
 }
Example #2
0
 void Start()
 {
     Driver = new AstarMoveController(this.gameObject, speed, FindObjectOfType <Canvas>());
     Driver.Enable();
 }