private void Update() { currentAnimation.UpdateAnimation(); if (previousAnimation != null) { if (previousAnimation != currentAnimation) { Debug.Log("Map animation set: " + currentAnimation); } } else { Debug.Log("Map animation is now idle."); } previousAnimation = currentAnimation; }
private void Start() { currentAnimation = null; }