Karate Joe hits Cooking Pot with right hand + code cleanup

Also Taco Bell now plays the rock hit sound on top of the bell sound :)
This commit is contained in:
Carson Kompon
2022-03-02 23:23:20 -05:00
parent 752307fa64
commit 7cc7ffd691
5 changed files with 23 additions and 15 deletions

View File

@ -12,8 +12,6 @@ namespace RhythmHeavenMania.Games.KarateMan
[Header("Components")]
public Animator anim;
public GameObject HitEffect;
public ParticleSystem HitParticle;
public ParticleSystem RockParticle;
public GameObject BulbHit;
[SerializeField] private SpriteRenderer head;
[SerializeField] private Sprite[] heads;
@ -268,7 +266,7 @@ namespace RhythmHeavenMania.Games.KarateMan
}
else
{
if (p.type == 2 || p.type == 3 || p.type == 4 || p.type == 6)
if (p.type == 2 || p.type == 3 || p.type == 4 || p.type == 6 || p.type == 999)
{
punchLeft = false;
}