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; }
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(); }