public void HitFeet(FeetType feetStroke) { switch (feetStroke) { case FeetType.left: this.leftFeetAlive = false; break; case FeetType.right: this.rightFeetAlive = false; break; } }
public void SetFeetStatus(FeetType feet, bool status) { switch (feet) { case FeetType.left: this.leftFeetAlive = status; break; case FeetType.right: this.rightFeetAlive = status; break; } }
public bool GetFeetStatus(FeetType feet) { switch (feet) { case FeetType.left: return(leftFeetAlive); case FeetType.right: return(rightFeetAlive); default: return(true); } }
public static string GetFeetName(FeetType feetType) { string feet = ""; switch (feetType) { case FeetType.NoneFeet: //充数 feet = "ch_pc_hou_008_jiao"; break; case FeetType.Feet1: feet = "ch_pc_hou_004_jiao"; break; case FeetType.Feet2: feet = "ch_pc_hou_006_jiao"; break; default: break; } return(feet); }