Example #1
0
    public AnimsList GetAnimList(DamageType dmgType, SoldierBodyPart bodyPart)
    {
        switch (dmgType)
        {
        case DamageType.Bullet:
            switch (bodyPart)
            {
            case SoldierBodyPart.UpFront:
                return(Anims_Bullet_UpFront);

            case SoldierBodyPart.UpBack:
                return(Anims_Bullet_UpBack);

            case SoldierBodyPart.Down:
                return(Anims_Bullet_Down);
            }
            break;
        }

        return(Anims_Bullet_UpFront);
    }
Example #2
0
    public string GetRandomAnim(DamageType dmgType, SoldierBodyPart bodyPart)
    {
        AnimsList anims = GetAnimList(dmgType, bodyPart);

        return(anims.GetRandomAnimName());
    }