示例#1
0
 public void SetRotIndex(int iIndex)
 {
     m_iIndexPos = iIndex;
     if (OnBlockRot != null)
     {
         OnBlockRot.Invoke();
     }
 }
示例#2
0
 public void Rot()
 {
     m_iIndexPos++;
     if (m_iIndexPos >= GetRotData().Count)
     {
         m_iIndexPos = 0;
     }
     if (OnBlockRot != null)
     {
         OnBlockRot.Invoke();
     }
 }