public void OnBack() { //Debug.Log("gameobject : " + this.name); //Debug.Log("de activate: " + gameObject.name); //Debug.Log("activate: " + PlayerMesh.name); //Debug.Log("activate: " + PlayerSelection.name); gameObject.SetActive(false); PlayerMesh.SetActive(true); PlayerSelection.SetActive(true); }
void activeAndDeactive() { //Debug.Log("gameobject : " + this.name); //Debug.Log("activate: " + PlayerSelection.name); //Debug.Log("activate: " + PlayerMesh.name); //Debug.Log("de activate: " + Menu.name); PlayerSelection.SetActive(true); PlayerMesh.SetActive(true); Menu.SetActive(false); }
public void OnBack() { //Debug.Log("Log out"); client.TcpSend("QUITGAME|" + client.getString("PlayerName")); client.remove("PlayerName"); //Debug.Log("gameobject : " + this.name); //Debug.Log("activate: " + Menu.name); //Debug.Log("activate: " + PlayerMesh.name); //Debug.Log("de activate: " + gameObject.name); Menu.SetActive(true); PlayerMesh.SetActive(false); gameObject.SetActive(false); }