// Update is called once per frame void Update() { if (tempAnim != null) { bool completed = tempAnim.DoUpdate(); if (completed) { tempAnim = null; } } else { currentAnim?.DoUpdate(); } }