22 lines
472 B
C#
22 lines
472 B
C#
using Microsoft.MixedReality.Toolkit.Utilities.Solvers;
|
|
using UnityEngine;
|
|
/// <summary>
|
|
/// 面板
|
|
/// </summary>
|
|
public class FollowCamera : MonoBehaviour
|
|
{
|
|
private bool isFollow;
|
|
public void Follow()
|
|
{
|
|
if (isFollow)
|
|
{
|
|
GetComponent<RadialView>().UpdateLinkedTransform = false;
|
|
}
|
|
else
|
|
{
|
|
GetComponent<RadialView>().UpdateLinkedTransform = true;
|
|
}
|
|
isFollow = !isFollow;
|
|
}
|
|
}
|