using System.Collections; using System.Collections.Generic; using UnityEngine; public class TWS_CustomizableCharacter : MonoBehaviour { public List customizationAppliers; protected void ApplyItemCustomization(TWS_AppliedCustomizationsData appliedCustomization) { TWS_ItemCustomizationApplier fetchedItem = customizationAppliers.Find(x => x.catagoryName.Equals(appliedCustomization.catagoryName)); fetchedItem.ApplyCustomizationData(appliedCustomization); } protected void ApplyAllCustomizationsFromCustomizationData() { List data = FetchAppliedCustomizationData(); foreach (TWS_AppliedCustomizationsData appliedData in data) { ApplyItemCustomization(appliedData); } } protected List FetchAppliedCustomizationData() { List data = GameManager.Instance.currentAppliedCustomizations; return data; } }