public void Enqueue(CameraPositionLookup lookup, DialogueCamera camera)
 {
     Enqueue(new CameraPositionLookupKeyValuePair()
     {
         camera = camera, lookup = lookup
     });
 }
Beispiel #2
0
        protected virtual void SetCameraPosition()
        {
            if (useInterpolation && focusNames.Length >= 2)
            {
                // TODO: Randomly assign these - Make sure r1 != r2.
                var r1       = focusNames[0];
                var r2       = focusNames[1];
                var position = new CameraPositionLookup()
                {
                    duration = interpolationTime, from = r1, to = r2
                };

                dialogueCamera.SetCameraPosition(position);
            }
            else
            {
                var r1 = focusNames[UnityEngine.Random.Range(0, focusNames.Length)];
                dialogueCamera.SetCameraPosition(r1);
            }
        }
Beispiel #3
0
 public virtual void SetCameraPosition(CameraPositionLookup lookup)
 {
     DialogueCameraManager.instance.Enqueue(lookup, this);
 }