1118OPSSNew/Assets/Zion/Scripts/GameScene/FollowCamera.cs

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;
}
}