You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
base.GetComponent<PolygonCollider2D>().isTrigger =true;base.transform.Find("PotCollider").GetComponent<PolygonCollider2D>().isTrigger =true;
PolygonCollider2D[]components=base.transform.Find("PotCollider").transform.Find("Sides").GetComponents<PolygonCollider2D>();for(inti=0;i< components.Length;i++){
components[i].isTrigger =true;// YOU HAVE TO LOOP IF YOU DON'T SOME ANIMATION FUNCTION SOMEWHERE TRIES TO ACCESS YOUR NONEXISTENT PLAYER}
SkinnedMeshRenderer[]componentsInChildren=base.transform.Find("dude").gameObject.GetComponentsInChildren<SkinnedMeshRenderer>();for(intj=0;j< componentsInChildren.Length;j++){
componentsInChildren[j].enabled =false;}base.transform.Find("dude").gameObject.SetActive(true);base.transform.Find("Pot").transform.Find("Mesh").gameObject.SetActive(false);