using Cryville.Common.Pdt; using System.Collections.Generic; using UnityEngine; namespace Cryville.Crtr.Components { public abstract class SkinComponent : MonoBehaviour { /// /// The property operators of the component. /// public Dictionary PropOps { get; private set; } /// /// Submits a property. /// /// The name of the property. /// The property operator. protected void SubmitProperty(string name, PdtOperator property) { PropOps.Add(name, property); } /// /// Create a skin component /// protected SkinComponent() { // Properties = new Dictionary(); PropOps = new Dictionary(); } public virtual void Init() { } protected abstract void OnDestroy(); } }