Ejemplo n.º 1
0
    /// <summary>
    /// 查找加载初始化.
    /// </summary>
    private void FindAndLoadInit()
    {
        m_BuildPanelView = gameObject.GetComponent <BuildPanelView>();

        categoryNames = new string[] { "", "[杂项]", "[屋顶]", "[楼梯]", "[窗户]", "[门]", "[墙壁]", "[地板]", "[地基]" };

        categoryItemList = new List <CategoryItemController>(categoryNum);
    }
Ejemplo n.º 2
0
    /// <summary>
    ///  初始化一些字段和变量
    /// </summary>
    private void InitOther()
    {
        m_View = gameObject.GetComponent <BuildPanelView>();


        currentIndex       = 0;
        secondCurrentIndex = 0;
        isLock             = false;
        isSelected         = false;
        isDelete           = false;
    }
Ejemplo n.º 3
0
 /// <summary>
 /// 默认初始化
 /// </summary>
 private void Init()
 {
     m_BuildPanelModel = gameObject.GetComponent <BuildPanelModel>();
     m_BuildPanelView  = gameObject.GetComponent <BuildPanelView>();
 }