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