Example #1
0
    private void OnComponentRemoved(GameEvent e)
    {
        var data = (EntityComponentData)e.EventData;

        var form = data.Component as FormComponent;

        if (form != null)
        {
            AnimationSystem.RemoveAll(data.EntityId);
            form.DestroyForm();
        }
    }