コード例 #1
0
ファイル: UI_ScreenBuilding.cs プロジェクト: Rivenort/Test
    /// <summary>[SetInInspector] On info button click event </summary>
    public void OnProductionInfoButtonClick()
    {
        if (!(m_currentBuilding is IBuildingProduction))
        {
            Debug.LogWarning("Building is not a production one.");
            return;
        }
        Guid settler = ((IBuildingProduction)m_currentBuilding).GetWorker();

        if (settler == Guid.Empty)
        {
            Debug.LogWarning("Production Building doesn't have a worker.");
            return;
        }
        UI_ScreenSettler.SShowSettler(settler);
    }
コード例 #2
0
 public void OnClickInfo()
 {
     UI_ScreenSettler.SShowSettler(m_settler);
 }
コード例 #3
0
ファイル: UI_ElemSettlerRemove.cs プロジェクト: Rivenort/Test
 public void OnClickInfo()
 {
     UI_ScreenSettler.SShowSettler(m_settler);
     M_ScreenManager.SChangeScreenPersistentBack(m_settlerScreen);
     UI_ScreenRemoveWorker.SSetIfInfoScreen(true);
 }