public void Deserialize(BinaryReader reader) { position = new Vector3(); rotation = new Vector3(); position.x = -reader.GetFloat(); position.y = reader.GetFloat(); position.z = reader.GetFloat(); rotation.x = -reader.GetFloat(); rotation.y = reader.GetFloat(); rotation.z = reader.GetFloat(); //position = reader.GetVector3Position(); //rotation = reader.GetVector3Rotation(); fov = reader.GetFloat(); paramFlagsA = (CameraLayers)reader.GetUInt32(); paramFlagsB = (CameraLayers)reader.GetUInt32(); }
public void SetInstance() { inst = this; }