The character was used in my first educacional game published (free) in Play Store: https://play.google.com/store/apps/details?id=com.gustavovanin.roboticmath
Reference in Unity site: Clique here
Resume:
// in classpublic GameObject player_part;//in updateif(Input.GetButtonDown("Action")){//print("B (X-Box) / E (keyboard)");player_part = GameObject.Find("/Character Controller/Player/corpo");player_part.SetActive(false);}
Other options:
- playerObject.GetComponent<MeshRenderer>().enabled = false;- GameObject.Find("corpo"); //find without path
Thank you.