Пример #1
0
    // Use this for initialization
    void Awake()
    {
        Debug.Log("NextGameConnectionType: " + NextGameConnectionType);

        Inst = this;
        vnet = new VNet();
        vnet.Init();


        vTransformMan = GetComponent <VNetTransformManager>();

        // This needs to update at least once a second
        if (TransformUpdatesPerSecond == 0)
        {
            TransformUpdatesPerSecond = 1;
        }

        NoConnection  = true;
        LocalIsHost   = false;
        LocalIsClient = false;



        StartAttemptToConnect();
    }
Пример #2
0
 void OnDestroy()
 {
     Inst          = null;
     vTransformMan = null;
 }