/// <summary> /// Metoda ukrywa marker /// </summary> public void BuildingMode_CurrentBuildingMarkerHide() { SelectedBuildingMarker markerScript = BuildingMode_CurrentBuildingMarker.GetComponent <SelectedBuildingMarker>(); if (markerScript != null) { markerScript.UnsetFollowedBuilding(); } BuildingMode_CurrentBuildingMarker.SetActive(false); }
/// <summary> /// Metoda wyświetla marker /// </summary> public void BuildingMode_CurrentBuildingMarkerShow(GameObject followedBuilding) { BuildingMode_CurrentBuildingMarker.SetActive(true); SelectedBuildingMarker markerScript = BuildingMode_CurrentBuildingMarker.GetComponent <SelectedBuildingMarker>(); if (markerScript != null) { markerScript.SetFollowedBuilding(followedBuilding); } }