public void ClearTargetView() { if (_viewInstance) { GameObject.Destroy(_viewInstance.gameObject); _viewInstance = null; } }
public void SetupTargetView() { Target = EntityController.Player.Coords; _viewInstance = GameObject.Instantiate(ViewPrefab); var rootPos = MapController.WorldFromCoords(Target); _viewInstance.transform.position = rootPos; _viewInstance.RefreshLine(new List <Vector3>() { rootPos }, new List <bool>() { false }); }