Browse Source

jeff pls yeet

develop
Jordan 3 years ago
parent
commit
6db9d33043
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      Assets/ParentBehaviour.cs

+ 4
- 0
Assets/ParentBehaviour.cs View File

@ -168,6 +168,7 @@ public class ParentBehaviour : MonoBehaviour
{
if (CheckChild(collision.collider.gameObject))
{
print("correct child");
//this is the correct child
}
else
@ -175,6 +176,9 @@ public class ParentBehaviour : MonoBehaviour
Texture _displayGraphic = GiveDetails(collision.collider.gameObject);
//display the display graphic
parentDialougeObj.GetComponent<Image>().sprite = Sprite.Create((Texture2D)_displayGraphic, new Rect(0.0f, 0.0f, _displayGraphic.width, _displayGraphic.height), new Vector2(0.5f, 0.5f), 100.0f);
//yeet child back to centre of room
//child = collision.collider.gameObject
}
}
}

Loading…
Cancel
Save