void Awake() { if (grid == null) { grid = FindObjectOfType <GridAStar>(); } }
private void OnEnable() { gridAStar = target as GridAStar; }