public void Enqueue(CameraPositionLookup lookup, DialogueCamera camera) { Enqueue(new CameraPositionLookupKeyValuePair() { camera = camera, lookup = lookup }); }
public void SetPositionAndRotation(DialogueCamera camera, Vector3 pos, Quaternion rot, bool useWorldspace) { if (useWorldspace) { camera.transform.position = pos; camera.transform.rotation = rot; } else { camera.transform.localPosition = pos; camera.transform.localRotation = rot; } }
public void SetPositionAndRotation(DialogueCamera camera, CameraPosition pos) { Assert.IsNotNull(pos); SetPositionAndRotation(camera, pos.position, pos.rotation, pos.useWorldSpace); }