public override string GetHitAnimName(EPlayerStance playerStance, EStunAnimState state) { string hitAnimName = "Hit"; hitAnimName += playerStance.ToString(); if (IsHitKO()) { hitAnimName += "KO"; } else { switch (playerStance) { case EPlayerStance.Stand: hitAnimName += m_Config.m_HitHeight.ToString(); hitAnimName += m_Config.m_HitStrength.ToString(); hitAnimName += "_" + state.ToString(); break; case EPlayerStance.Crouch: hitAnimName += "Low"; // Crouch hit is necessarily low hitAnimName += m_Config.m_HitStrength.ToString(); hitAnimName += "_" + state.ToString(); break; case EPlayerStance.Jump: // Jump hit doesn't need hit height / strength break; } } return(hitAnimName); }
public override string GetBlockAnimName(EPlayerStance playerStance, EStunAnimState state) { string blockAnimName = "Block"; blockAnimName += playerStance.ToString(); if (playerStance == EPlayerStance.Jump) { KakutoDebug.LogError("A player can't block an attack while jumping."); } blockAnimName += "_" + state.ToString(); return(blockAnimName); }