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