Пример #1
0
 void Start()
 {
     networkView.viewID = Network.AllocateViewID();
     debug = GameObject.FindObjectOfType(typeof(ConsoleDebug)) as ConsoleDebug;
     if (Network.isClient) {
       StartCoroutine("BeginReport");
       debug.DebugLine(networkView.viewID.ToString());
     } else {
       StartCoroutine("BeginTest");
       debug.DebugLine(networkView.viewID.ToString());
     }
 }