Ejemplo n.º 1
0
    private int GetBaseScore(PlayerAttackType attackType, ScoreData scoreData)
    {
        if (!scoreData.UseComplicatedScore)
        {
            return(scoreData.BaseScore);
        }

        switch (attackType)
        {
        case PlayerAttackType.Stomping:
        case PlayerAttackType.Kicking:
            return(scoreData.StompedScore);

        case PlayerAttackType.FireBall:
        case PlayerAttackType.InvincibleStarman:
        case PlayerAttackType.Shell:
            return(scoreData.FireBallHitScore);
        }

        return(scoreData.BaseScore);
    }
 public OnAttackedMethod GetMethod(PlayerAttackType playerAttackType)
 {
     return(m_Methods[playerAttackType]);
 }
Ejemplo n.º 3
0
 public void DorHeal()
 {
     fightBox.SetActive(false);
     lastPlayerAttack = PlayerAttackType.Dor;
     StartCoroutine(DorHealEnum());
 }
Ejemplo n.º 4
0
 public void TamHeal()
 {
     fightBox.SetActive(false);
     lastPlayerAttack = PlayerAttackType.Tam;
     StartCoroutine(TamHealEnum());
 }
Ejemplo n.º 5
0
 public void VikHeal()
 {
     fightBox.SetActive(false);
     lastPlayerAttack = PlayerAttackType.Vik;
     StartCoroutine(VikHealEnum());
 }