コード例 #1
0
 public void DisplayHorizontalLine(int row, enHorizontalLineType type)
 {
     if (this.m_horizontalLines[row][(int)type] != null)
     {
         this.m_horizontalLines[row][(int)type].alpha = 1f;
     }
 }
コード例 #2
0
        public void InitializeHorizontalLine(int row, enHorizontalLineType type, GameObject gameObject)
        {
            CanvasGroup component = gameObject.GetComponent <CanvasGroup>();

            if (component == null)
            {
                component = gameObject.AddComponent <CanvasGroup>();
            }
            component.alpha = 0f;
            this.m_horizontalLines[row][(int)type] = component;
        }