示例#1
0
    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;
    }
示例#2
0
 private void Start()
 {
     currentAnimation = null;
 }