示例#1
0
 // 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;
 }
示例#2
0
 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;
 }