Skip to content
Snippets Groups Projects
Commit 8943b766 authored by Karim Ajouz's avatar Karim Ajouz
Browse files

Clue Object Crash fixed;

parent 3cc8970a
Branches
Tags V1
No related merge requests found
......@@ -33,7 +33,7 @@ public class clueObject : MonoBehaviour
this.GetComponent<SpriteRenderer>().color = new Color(1.0f, 1.0f, 1.0f, 0.0f);
}
if(allowInspection && Input.GetButtonDown("Inspect") & !searched)
if(allowInspection && Input.GetButtonDown("Inspect") && !searched)
{
for(int i = 0; i < clues.Length; i++)
{
......@@ -47,7 +47,7 @@ public class clueObject : MonoBehaviour
private void OnTriggerEnter(Collider other)
{
if (other.tag == "Character")
if (other.tag == "Character" && !searched)
allowInspection = true;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment