anim controller fix (#149)

This commit is contained in:
AmazingAlek 2020-08-09 19:41:23 +02:00 committed by GitHub
parent a036b8fe6f
commit 98d151203a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,10 +79,10 @@ namespace QSB.Animation
{
InitCommon(body);
_suitedAnimController = _bodyAnim.runtimeAnimatorController;
var playerAnimController = body.GetComponent<PlayerAnimController>();
playerAnimController.enabled = false;
_suitedAnimController = playerAnimController.GetValue<RuntimeAnimatorController>("_baseAnimController");
_unsuitedAnimController = playerAnimController.GetValue<AnimatorOverrideController>("_unsuitedAnimOverride");
_suitedGraphics = playerAnimController.GetValue<GameObject>("_suitedGroup");
_unsuitedGraphics = playerAnimController.GetValue<GameObject>("_unsuitedGroup");