Exemplo n.º 1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            // Show current state of our target
            if (SerializationTarget != null)
            {
                AddNewResult(SerializationTarget.ToString());
            }

            // Register for serialization callback (if required)
            RSManager.RegisterEventListener(Save2PrefsSerializationID, this as IRuntimeSerializationEventListener);
            RSManager.RegisterEventListener(Save2FileSerializationID, this as IRuntimeSerializationEventListener);
        }