Ejemplo n.º 1
0
        public IEnumerator StartPlayMode_PlaysImmediately()
        {
            // teardown and rebuild our game object so it starts off
            // this is cause we need start to be called AFTER we have changed a setting
            TearDown();

            _tweenObject = new GameObject("Tween");
            _tweenObject.SetActive(false);

            _tween          = _tweenObject.AddComponent <TestTween>();
            _tween.playMode = PlayMode.Start;

            // check to make sure we dont start until we are turned on
            yield return(null);

            Assert.IsFalse(_tween.isPlaying);

            yield return(null);

            _tweenObject.SetActive(true);

            yield return(null);

            Assert.IsTrue(_tween.isPlaying);
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _tweenObject = new GameObject("Tween");
     _tween       = _tweenObject.AddComponent <TestTween>();
 }