protected override void OnStart() { base.OnStart(); TattledEntity = (ITattleableEntity)EntitiesAffected[0]; if (Action.CommandEnabled == true && Action.DrawActionCommandInfo == true) { TattleUI = new TattleActionCommandUI(actionCommand as TattleCommand); User.BManager.battleUIManager.AddUIElement(TattleUI); } }
protected override void OnEnd() { base.OnEnd(); if (TattleBox != null) { User.BManager.battleObjManager.RemoveBattleObject(TattleBox); TattleBox = null; } TattledEntity = null; if (TattleUI != null) { User.BManager.battleUIManager.RemoveUIElement(TattleUI); TattleUI = null; } }