Skip to content

Commit

Permalink
Revert "small Fixes"
Browse files Browse the repository at this point in the history
This reverts commit 76d9230.
  • Loading branch information
theradest1 committed Mar 4, 2022
1 parent 8124d3c commit f344f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -3724,7 +3724,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1387194767
RectTransform:
m_ObjectHideFlags: 0
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/Health.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Health : MonoBehaviour
// Start is called before the first frame update
void Start()
{
//sound = GameObject.Find("SoundManager").GetComponent<Sound>();
sound = GameObject.Find("SoundManager").GetComponent<Sound>();
}

// Update is called once per frame
Expand All @@ -36,7 +36,7 @@ void OnCollisionEnter(Collision collision)
//Debug.Log(strength);
//Debug.Log(strength);
if(strength > minStrength){
//sound.hitSounds();
sound.hitSounds();
Instantiate(hitParticles, collision.contacts[0].point, healthBarCanvas.transform.rotation);
health -= strength/resistance;

Expand Down

0 comments on commit f344f60

Please sign in to comment.