Пример #1
0
 public void PutFloat(ISFSObject data, string key, float item)
 {
     if (sendEncrypted)
     {
         data.PutByteArray(key, provider.EncryptFloat(item));
     }
     else
     {
         data.PutFloat(key, item);
     }
 }
Пример #2
0
    public void toSFSObject(ISFSObject data)
    {
        data.PutFloat("x", position.x);
        data.PutFloat("y", position.y);
        data.PutFloat("z", position.z);

        data.PutFloat("rx", rotation.eulerAngles.x);
        data.PutFloat("ry", rotation.eulerAngles.y);
        data.PutFloat("rz", rotation.eulerAngles.z);

        data.PutDouble("time", timeStamp);
    }
Пример #3
0
 public void PutFloat(ISFSObject data, string key, float item)
 {
     if (sendEncrypted)
     {
         data.PutByteArray(key, provider.EncryptFloat(item));
     }
     else
     {
         data.PutFloat(key, item);
     }
 }