protected override void OnEnable() { _layoutHelix = (LayoutHelix)target; _radius = serializedObject.FindProperty("_radius"); _itemOffset = serializedObject.FindProperty("_itemOffset"); _itemAngle = serializedObject.FindProperty("_itemAngle"); _angleOffset = serializedObject.FindProperty("_angleOffset"); }
// Start is called before the first frame update void Start() { if (LayoutSwap == null) { LayoutSwap = GetComponentInChildren <LayoutSwap>(); } if (LayoutKenBurns == null) { LayoutKenBurns = GetComponentInChildren <LayoutKenBurns>(); } if (LayoutAssetFlow == null) { LayoutAssetFlow = GameObject.FindObjectOfType <LayoutAssetFlow>(); } if (LayoutAssetFlow != null) { if (LayoutAssetFlow.AssetFlowType == AssetFlowEnum.Loop) { AsseFlowSlider.minValue = 0; AsseFlowSlider.maxValue = 1; } else if (LayoutAssetFlow.AssetFlowType == AssetFlowEnum.Clamp) { AsseFlowSlider.minValue = -1; AsseFlowSlider.maxValue = 1; } } if (LayoutHelix == null) { LayoutHelix = FindObjectOfType <LayoutHelix>(); } if (LayoutCarousel == null) { LayoutCarousel = FindObjectOfType <LayoutCarousel>(); } }