コード例 #1
0
    void TargetSetSpawn(NetworkConnection nc, NetworkInstanceId sId)
    {
        //for(uint i =0; i<10; i++)
        //{
        //    print(i + "  rpc  " + ClientScene.FindLocalObject(new NetworkInstanceId(i)));
        //}
        spawn = ClientScene.FindLocalObject(sId);
        //print(spawn);
        //print(sId);
        gm.clientFace = spawn.transform.forward;
        GameObject c = Instantiate(CamPre);

        cam = c.GetComponent <CamMove>();
        inp.setCamera(c.GetComponent <Camera>());
        gm.setCam(c.GetComponent <Camera>());
        cam.setup(spawn);
    }