Пример #1
0
        private void Awake()
        {
            controller = GetComponent <AnturaAnimationController>();

            // Reuse a well made animation
            antura              = gameObject.AddComponent <ReadingGameAntura>();
            antura.enabled      = false;
            antura.AllowSitting = true;
            state = State.Cache();

            Entering = EnteringState();
            Idle     = IdleState();
            Exiting  = ExitingState();
            Angry    = AngryState();
            Happy    = HappyState();

            becomeExiting = state.Event();
            becomeHappy   = state.Event();
            becomeAngry   = state.Event();
        }
Пример #2
0
 public AnturaState(ReadingGameAntura antura)
 {
     this.antura = antura;
 }