コード例 #1
0
    /// <summary>
    /// Metoda ukrywa marker
    /// </summary>
    public void BuildingMode_CurrentBuildingMarkerHide()
    {
        SelectedBuildingMarker markerScript = BuildingMode_CurrentBuildingMarker.GetComponent <SelectedBuildingMarker>();

        if (markerScript != null)
        {
            markerScript.UnsetFollowedBuilding();
        }
        BuildingMode_CurrentBuildingMarker.SetActive(false);
    }
コード例 #2
0
    /// <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);
        }
    }