产生的玩家无法与服务器通信

时间:2015-11-30 15:33:45

标签: unity3d multiplayer unity-networking

我正在使用本地WAMP服务器来连接所有内容。当我启动服务器然后连接客户端时,我没有错误。一切似乎运行良好,直到播放器产生并且它告诉我" SpawnObject for SkeletonPlayer(Clone)(UnityEngine.GameObject),NetworkServer不活动。没有活动服务器时无法生成对象。"关于发生了什么的任何想法?

/**
* Add a vector <b>v</b> to the original vector. Normal vector
* addition is carried out. I.e. the x-components are added and
* the y components are added, etc.
*
* @param v vector to be added to original vector. 
**/
public void increaseBy(PhysicsVector v){
    for (int i=0; i<vectorComponents.length; i++) {
        vectorComponents[i] += v.vectorComponents[i];
    }
}

0 个答案:

没有答案