示例#1
0
 // Use this for initialization
 void Start()
 {
     try{
         manag  = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerGunRoom> ();
         webcam = GameObject.FindGameObjectWithTag("GameManager").GetComponent <WebCam> ();
     }
     catch {
     }
     try{
         manag2 = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerStartRoom> ();
         webcam = GameObject.FindGameObjectWithTag("GameManager").GetComponent <WebCam> ();
     }
     catch {
     }
     try{
         manag3 = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerWalkRoom> ();
         webcam = GameObject.FindGameObjectWithTag("GameManager").GetComponent <WebCam> ();
     }
     catch {
     }
 }
 void Start()
 {
     walk = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerWalkRoom> ();
 }