示例#1
0
        public IEnumerator UpdateFOVNullCamera()
        {
            FOVKickClass kick = new FOVKickClass
            {
                newFOV = 70
            };

            kick.INTERNAL__UpdateNewFOV();
            Assert.AreEqual(kick.newFOV, 70);
            yield return(null);
        }
示例#2
0
        public IEnumerator UpdateFOVNullCamera()
        {
            player.Camera.TargetCamera = null;

            FOVKickClass kick = new FOVKickClass
            {
                newFOV           = 70,
                PlayerController = player
            };

            kick.INTERNAL__UpdateNewFOV();
            Assert.AreEqual(kick.newFOV, 70);
            yield return(null);
        }