コード例 #1
0
ファイル: UIMain.cs プロジェクト: vbetter/wordgames
 void AddOperation(UIEnFontBox item)
 {
     m_operations.Add(item.UID);
     m_myAnswer         += item.ItemName;
     m_curOperationID    = item.UID;
     m_myInputLabel.text = m_myAnswer;
 }
コード例 #2
0
ファイル: UIMain.cs プロジェクト: vbetter/wordgames
 void SetItems()
 {
     if (m_BoxList != null && m_BoxList.Count > 0)
     {
         for (int i = 0; i < m_BoxList.Count; i++)
         {
             UIEnFontBox item   = m_BoxList[i];
             int         row    = i / 3;
             int         column = i % 3;
             Vector3     pos    = new Vector3((1 - row) * 164, (column + 1) * (-120) - 60, 0);
             item.transform.localPosition = pos;
             item.Init(i, m_fontsList[i]);
         }
     }
 }
コード例 #3
0
ファイル: UIMain.cs プロジェクト: vbetter/wordgames
    void CheckStatus(UIEnFontBox item = null)
    {
        if (item != null && EnableAddOperation(item))
        {
            AddOperation(item);
        }

        if (IsSuccess())
        {
            SetSuccess();
            return;
        }

        if (m_operations.Count > m_operationsMax)
        {
            ClearOperation();
        }
    }
コード例 #4
0
ファイル: UIMain.cs プロジェクト: vbetter/wordgames
 bool EnableAddOperation(UIEnFontBox item)
 {
     return(true);
 }