Beispiel #1
0
 public void SetInfo(Country_SO country)
 {
     m_NameText.text       = country.GetName();
     m_AreaText.text       = country.GetArea().ToString();
     m_GDPText.text        = country.GetGDP().ToString();
     m_PopulationText.text = country.GetPopulation().ToString();
 }
Beispiel #2
0
    public void Open(Country_SO country)
    {
        m_AreaText.text       = "Площадь: " + country.GetArea();
        m_GRPText.text        = "ВВП: " + country.GetGDP();
        m_PopulationText.text = "Население: " + country.GetPopulation();

        base.Open();
    }
Beispiel #3
0
    // Start is called before the first frame update
    public void Init(SceneManager sceneManager)
    {
        _SceneManager = sceneManager;
        _Country      = new Country_SO(m_SlugName);

        _Model   = _Country.LoadModel();
        _ModelGO = Instantiate(_Model, transform);

        _ModelGO.SetActive(false);


        _Mark = GetComponentInChildren <MarkLookAtCamera>();
        _Mark.OnMarkClicked += MarkClicked;

        _Mark.OnMarkMouseDown += StartWaitSelect;
        _Mark.OnMarkMouseUp   += StopWaitSelect;
        m_SelectedNameCountry.gameObject.SetActive(false);
        m_SelectedNameCountry.text = _Country.GetName();

        Selected = false;
    }
Beispiel #4
0
 int ComparePopulation(Country_SO country)
 {
     return(country.GetPopulation());
 }
Beispiel #5
0
 int CompareGDP(Country_SO country)
 {
     return(country.GetGDP());
 }
Beispiel #6
0
 int CompareArea(Country_SO country)
 {
     return(country.GetArea());
 }
    internal void RemoveCountry(Country_SO country)
    {
        countrySelectedList.Remove(country);

        UpdateUI();
    }
    internal void AddCountry(Country_SO country)
    {
        countrySelectedList.Add(country);

        UpdateUI();
    }
 void ShowCountyInfo(Country_SO country)
 {
     _CountryInfo.Open(country);
 }