コード例 #1
0
        protected override void GenerateAnimator(ActorAnimatorController actorAnimationController)
        {
            base.GenerateAnimator(actorAnimationController);
            EHAnimatorController ehAnimatorController = actorAnimationController as EHAnimatorController;

            // --- Update Statemachines ---
            UpdateStatemachine(ehAnimatorController.generalState);       // GeneralState
            UpdateStatemachine(ehAnimatorController.crouchState);        // CrouchState
            UpdateStatemachine(ehAnimatorController.collectStates);      // CollectState
            UpdateStatemachine(ehAnimatorController.treasureChestState); // TreasureChestState
            UpdateStatemachine(ehAnimatorController.caughtStates);       // CaughtStates
            UpdateStatemachine(ehAnimatorController.climbState);         // ClimbStates

            UpdateStatemachine(ehAnimatorController.openCloseStates);    // OpenCloseStates
            UpdateStatemachine(ehAnimatorController.hideInsideStates);   // HideInsideStates
            UpdateStatemachine(ehAnimatorController.pushPullStates);     // PushPullStates
            UpdateStatemachine(ehAnimatorController.throwStates);        // ThrowStates

            UpdateStatemachine(ehAnimatorController.kidStates);          // KidStates
            UpdateStatemachine(ehAnimatorController.checkpointStates);   // CheckpointStates
            UpdateStatemachine(ehAnimatorController.cheakyStates);       // CheakyAnimations

            UpdateStatemachine(ehAnimatorController.birdViewState);      // BirdViewAnimations
            UpdateStatemachine(ehAnimatorController.minecartState);      // MinecartState
            UpdateStatemachine(ehAnimatorController.switchState);        // SwitchState
            UpdateStatemachine(ehAnimatorController.balanceState);       // BalanceState

            // -- Modular Animations --
            UpdateStatemachine(ehAnimatorController.torsoLayerStates);

            Debug.Log("Generate Animator finished!");
        }
コード例 #2
0
        protected void Initialize()
        {
            if (t != null)
            {
                return;
            }

            t = target as ActorAnimatorController;
            animatorController = t.animatorController as AnimatorController;

            if (animatorController == null)
            {
                return;
            }

            animatorStates = animatorController.layers[0].stateMachine.states;
        }
コード例 #3
0
 protected virtual void GenerateAnimator(ActorAnimatorController actorAnimationController)
 {
 }