Пример #1
0
        public void SetUp()
        {
            ILevel     level     = Substitute.For <ILevel>();
            ILerp      lerp      = Substitute.For <ILerp>();
            ILerp      hoistLerp = Substitute.For <ILerp>();
            IAnimator  animator  = Substitute.For <IAnimator>();
            GameObject player    = getPlayer();

            tc = player.GetComponent <ThunderboltCharacter>();
            tc.Awake();
            tc.level     = level;
            tc.lerp      = lerp;
            tc.hoistLerp = hoistLerp;
            tc.animator  = animator;
        }
 private void Awake()
 {
     character = GetComponent <ThunderboltCharacter>();
 }