public void PutFloat(ISFSObject data, string key, float item) { if (sendEncrypted) { data.PutByteArray(key, provider.EncryptFloat(item)); } else { data.PutFloat(key, item); } }
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); }