public void OneStack_SetNum(int num)
 {
     if (num != 0)
     {
         if (mCoinStackImm == null)
         {
             mCoinStackImm = Instantiate(Prefab_coinStackImm) as CoinStackImm;
             mCoinStackImm.transform.parent        = transform;
             mCoinStackImm.transform.localRotation = Quaternion.identity;
             mCoinStackImm.transform.localPosition = Vector3.zero;// new Vector3(-(OneStackWidth + OneStackSpace), 0F, 0F);
         }
         mCoinStackImm.SetNum(num);
     }
     else
     {
         if (mCoinStackImm != null)
         {
             Destroy(mCoinStackImm.gameObject);
             mCoinStackImm = null;
         }
     }
 }
Beispiel #2
0
 public void OneStack_SetNum(int num)
 {
     if (num != 0)
     {
         if (mCoinStackImm == null)
         {
             mCoinStackImm = Instantiate(Prefab_coinStackImm) as CoinStackImm;
             mCoinStackImm.transform.parent = transform;
             mCoinStackImm.transform.localRotation = Quaternion.identity;
             mCoinStackImm.transform.localPosition = Vector3.zero;// new Vector3(-(OneStackWidth + OneStackSpace), 0F, 0F);
         }
         mCoinStackImm.SetNum(num);
     }
     else
     {
         if (mCoinStackImm != null)
         {
             Destroy(mCoinStackImm.gameObject);
             mCoinStackImm = null;
         }
     }
 }