diff --git a/Assets/ParentBehaviour.cs b/Assets/ParentBehaviour.cs index 6f1fd55..839fffc 100644 --- a/Assets/ParentBehaviour.cs +++ b/Assets/ParentBehaviour.cs @@ -25,6 +25,15 @@ public class ParentBehaviour : MonoBehaviour public Texture2D parentFaceAngry; public Texture2D parentFaceTalk; + public GameObject parentBodyObj; + public GameObject parentFaceObj; + public GameObject parentDialougeObj; + + private void Start() + { + parentBodyObj.GetComponent().material.mainTexture = parentBases[Random.Range(0, parentBases.Length)]; + parentFaceObj.GetComponent().material.mainTexture = parentFaceNeutral; + } [ContextMenu("Get Random Child")] public void GetRandomChild() @@ -126,6 +135,7 @@ public class ParentBehaviour : MonoBehaviour { Texture _displayGraphic = GiveDetails(other.gameObject); //display the display graphic + parentDialougeObj.GetComponent().material.mainTexture = _displayGraphic; } } }