Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
2046045a2This file is pinned to the selected release. Download the original to open it in your design tool.
using Leap.Unity.Animation;
using Leap.Unity.Attributes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LODItem : MonoBehaviour {
[Header("Tween Switch (override propertySwitch)")]
public TweenSwitch tweenSwitch;
[Header("Or, non-Tween switch")]
[SerializeField, ImplementsInterface(typeof(IPropertySwitch))]
private MonoBehaviour _propertySwitch;
public IPropertySwitch propertySwitch {
get {
if (tweenSwitch != null) return tweenSwitch;
return _propertySwitch as IPropertySwitch;
}
}
}