Exemple #1
0
    public void HitFeet(FeetType feetStroke)
    {
        switch (feetStroke)
        {
        case FeetType.left:
            this.leftFeetAlive = false;
            break;

        case FeetType.right:
            this.rightFeetAlive = false;
            break;
        }
    }
Exemple #2
0
    public void SetFeetStatus(FeetType feet, bool status)
    {
        switch (feet)
        {
        case FeetType.left:
            this.leftFeetAlive = status;
            break;

        case FeetType.right:
            this.rightFeetAlive = status;
            break;
        }
    }
Exemple #3
0
    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);
        }