Esempio n. 1
0
 public int GetChangeRelationShipCD(TUnit other)
 {
     if (ChangeRelationShipCD.ContainsKey(other))
     {
         return((int)ChangeRelationShipCD[other].CurCount);
     }
     return(0);
 }
Esempio n. 2
0
 public void ResetChangeRelationCD(TUnit other, int cd)
 {
     if (!ChangeRelationShipCD.ContainsKey(other))
     {
         ChangeRelationShipCD.Add(other, new CD());
     }
     ChangeRelationShipCD[other].Reset(cd);
 }