コード例 #1
0
ファイル: Display.cs プロジェクト: DestroyedClone/PoseHelper
        public override void OnEnter()
        {
            Debug.Log("Entered");
            animator = this.GetModelAnimator();

            cachedRuntimeAnimator   = animator.runtimeAnimatorController;
            survivorTauntController = this.characterBody.GetComponent <STPlugin.SurvivorTauntController>();

            base.OnEnter();

            Modules.Prefabs.survivorDef_to_animationController.TryGetValue(survivorTauntController.survivorDef, out RuntimeAnimatorController runtimeAnimator);
            animator.runtimeAnimatorController = runtimeAnimator;
            Modules.Prefabs.survivorDef_to_gameObject.TryGetValue(survivorTauntController.survivorDef, out GameObject displayPrefab);

            // virtuals
            animString   = "Spawn";
            animDuration = 0.75f;
        }
コード例 #2
0
ファイル: Pose.cs プロジェクト: DestroyedClone/PoseHelper
        public override void OnEnter()
        {
            survivorTauntController = this.characterBody.GetComponent <STPlugin.SurvivorTauntController>();
            var survivorDef = survivorTauntController.survivorDef;

            cachedRuntimeAnimatorController = base.GetModelAnimator().runtimeAnimatorController;

            if (survivorDef == Survivors.Bandit2)
            {
            }
            else if (survivorDef == Survivors.Captain)
            {
            }
            else if (survivorDef == Survivors.Commando)
            {
                base.GetModelAnimator().runtimeAnimatorController = STPlugin.introAnimatorController;
            }
            this.animString   = "";
            this.animDuration = 0.75f;
            this.soundString  = "";
            base.OnEnter();
        }