浏览代码

Add public properties for the SerializedFields and make m_Planes static.

/1.5-preview
Tim Mowrer 6 年前
当前提交
9245cae5
共有 1 个文件被更改,包括 28 次插入5 次删除
  1. 33
      Assets/Scripts/UX/UIManager.cs

33
Assets/Scripts/UX/UIManager.cs


const string k_FadeOffAnim = "FadeOff";
const string k_FadeOnAnim = "FadeOn";
[SerializeField] ARPlaneManager m_PlaneManager;
[SerializeField] Animator m_MoveDeviceAnimation;
[SerializeField] Animator m_TapToPlaceAnimation;
List<ARPlane> m_Planes = new List<ARPlane>();
[SerializeField]
ARPlaneManager m_PlaneManager;
public ARPlaneManager planeManager
{
get { return m_PlaneManager; }
set { m_PlaneManager = value; }
}
[SerializeField]
Animator m_MoveDeviceAnimation;
public Animator moveDeviceAnimation
{
get { return m_MoveDeviceAnimation; }
set { m_MoveDeviceAnimation = value; }
}
[SerializeField]
Animator m_TapToPlaceAnimation;
public Animator tapToPlaceAnimation
{
get { return m_TapToPlaceAnimation; }
set { m_TapToPlaceAnimation = value; }
}
static List<ARPlane> s_Planes = new List<ARPlane>();
bool m_ShowingTapToPlace = false;
bool m_ShowingMoveDevice = true;

正在加载...
取消
保存