コード例 #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();
 }
コード例 #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();
    }
コード例 #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;
    }
コード例 #4
0
 int ComparePopulation(Country_SO country)
 {
     return(country.GetPopulation());
 }
コード例 #5
0
 int CompareGDP(Country_SO country)
 {
     return(country.GetGDP());
 }
コード例 #6
0
 int CompareArea(Country_SO country)
 {
     return(country.GetArea());
 }
コード例 #7
0
    internal void RemoveCountry(Country_SO country)
    {
        countrySelectedList.Remove(country);

        UpdateUI();
    }
コード例 #8
0
    internal void AddCountry(Country_SO country)
    {
        countrySelectedList.Add(country);

        UpdateUI();
    }
コード例 #9
0
 void ShowCountyInfo(Country_SO country)
 {
     _CountryInfo.Open(country);
 }