// Use this for initialization void Start() { for(int i=0; i<this.transform.parent.childCount;i++){ this.transform.parent.GetChild(i).GetComponent<MeshRenderer>().enabled = false; } state = FireExtState.notAvailable; }
void SetFireExtVisible(PhotonMessageInfo info) { for(int i=1; i<this.transform.parent.childCount;i++){ this.transform.parent.GetChild(i).GetComponent<MeshRenderer>().enabled = true; } //this.transform.parent.parent.gameObject.AddComponent<Rigidbody>(); GameObject go = GameObject.Find("Telephone"); state = FireExtState.Available; }