Пример #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>();
 }
Пример #2
0
 TargetClick()
 {
     Instance = this;
 }