void OnValidate() { if (Swapable == null) { Swapable = GetComponent <ColorSwapable>(); } }
void OnValidate() { if (BaseColor == null) { BaseColor = GetComponent <ColorSwapable>(); } if (ThumbnailImage != null) { ThumbnailColor = ThumbnailImage.GetComponent <ColorSwapable>(); ThumbnailFitter = ThumbnailImage.GetComponent <AspectRatioFitter>(); } }