minor fix

This commit is contained in:
Glence 2023-03-10 17:25:41 +08:00
parent b9cfcdb11d
commit 3f4674e38f
1 changed files with 8 additions and 2 deletions

View File

@ -57,11 +57,17 @@ public class PlayerAnimations : Script
if (!BagAnimator) if (!BagAnimator)
Debug.LogError("Bag Animator is MISSING!"); Debug.LogError("Bag Animator is MISSING!");
if(!silhouettePlayer)
silhoPlayerAnimator = silhouettePlayer.GetComponent<Animator>(); silhoPlayerAnimator = silhouettePlayer.GetComponent<Animator>();
else
Debug.LogError("Silho Player is MISSING!");
if (!silhoPlayerAnimator) if (!silhoPlayerAnimator)
Debug.LogError("Silho Player Animator is MISSING!"); Debug.LogError("Silho Player Animator is MISSING!");
if(!silhouetteBag)
silhoBagAnimator = silhouetteBag.GetComponent<Animator>(); silhoBagAnimator = silhouetteBag.GetComponent<Animator>();
else
Debug.LogError("Silho bag is MISSING!");
if (!silhoBagAnimator) if (!silhoBagAnimator)
Debug.LogError("Silho Player Animator is MISSING!"); Debug.LogError("Silho Player Animator is MISSING!");
} }