diff --git a/Assets/Resources/Scripts/AIScripts/Enemy.cs b/Assets/Resources/Scripts/AIScripts/Enemy.cs index bed31ff..08fb2fb 100644 --- a/Assets/Resources/Scripts/AIScripts/Enemy.cs +++ b/Assets/Resources/Scripts/AIScripts/Enemy.cs @@ -6,6 +6,7 @@ using System; public class Enemy : Controller{ public bool isAir; private state currentState; + private Animator mAnimator; public LayerMask enemyMask; public bool rightdirection; public float[] time = new float[10]; @@ -14,6 +15,7 @@ public class Enemy : Controller{ void Start () { print("start"); + mAnimator = GetComponent (); changestate(new idle()); } // Update is called once per frame diff --git a/Assets/Sprites/SpriteAnimations/SpiderController.controller b/Assets/Sprites/SpriteAnimations/SpiderController.controller index f8d8015..eac26f8 100644 Binary files a/Assets/Sprites/SpriteAnimations/SpiderController.controller and b/Assets/Sprites/SpriteAnimations/SpiderController.controller differ