void OnFinished() { animatic.Dispose(); animatic = null; Enabled = false; }
/// <summary> /// Adds an Animatic to this. /// </summary> /// <param name="animatic">The Animatic to be added.</param> internal void Add(Animatic animatic) { AnimaticManager.animatic = animatic; AnimaticManager.animatic.OnFinished += new FinishedAnimaticEvent(OnFinished); Enabled = true; }