Ejemplo n.º 1
0
        private void SetPOV()
        {
            if (!lockNormalCamera)
            {
                female        = FindObjectOfType <Female>();
                male          = FindObjectOfType <Male>();
                currentTarget = male;

                if (currentTarget)
                {
                    neckBackup = currentTarget.NeckLook.CalcType;
                    currentTarget.NeckLook.Change(LookAtRotator.TYPE.NO, Camera.main.transform, true);
                    fovBackup        = Camera.main.fieldOfView;
                    lockNormalCamera = true;

                    if (female)
                    {
                        femEyeBackup = female.EyeLook.CalcType;
                        female.EyeLook.Change(LookAtRotator.TYPE.TARGET, Camera.main.transform, true);
                    }
                }
            }
            else
            {
                switch (neckRotator.mode)
                {
                case NeckMode.Both:
                    neckRotator = neckRotators[NeckMode.First];
                    break;

                case NeckMode.First:
                    neckRotator = neckRotators[NeckMode.Second];
                    break;

                case NeckMode.Second:
                    neckRotator = neckRotators[NeckMode.Both];
                    break;
                }

                RealPOV.Logger.Log(LogLevel.Message, neckRotator.mode);
            }
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     neckRotator = neckRotators[RealPOV.DefaultNeckMode.Value];
 }