Loading files
using Leap.Unity.Animation;
using Leap.Unity.Attributes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Leap.Unity.Apps.Launcher {
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;
}
}
}
}
f6b8e5137This file is pinned to the selected release. Download the original to open it in your design tool.