Exemplo n.º 1
0
        public void AnimationInputSettings_ShouldHaveProperPublicAPI()
        {
            var cube = GameObject.CreatePrimitive(PrimitiveType.Cube);

            var input = new AnimationInputSettings {
                gameObject = cube
            };

            input.AddComponentToRecord(typeof(Transform));
            input.AddComponentToRecord(typeof(Renderer));

            Assert.IsTrue(input.gameObject == cube);

            input.gameObject = null;

            Assert.IsTrue(input.gameObject == null);
        }