예제 #1
0
    public void Initialize(Matrix matrix)
    {
        Matrix = matrix;
        if (iPushable != null)
        {
            iPushable.SetInitialPositionStates();
        }

        Initialized = true;
        var networkedMatrix = Matrix.transform.parent.GetComponent <NetworkedMatrix>();

        if (isServer)
        {
            ServerSetNetworkedMatrixNetID(networkedMatrix.MatrixSync.netId);
        }
        else
        {
            FinishNetworkedMatrixRegistration(networkedMatrix);
        }
    }