| 123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class DebugForLerp : MonoBehaviour
- {
- // Start is called before the first frame update
- void OnEnable()
- {
- if (AimHandler.ins) {
- this.transform.GetComponentInChildren<Text>().text =
- AimHandler.ins.lerpForRotation ? "关闭镜头旋转插值" : "开启镜头旋转插值";
- }
- }
- public void Click()
- {
- if (!AimHandler.ins) return;
- AimHandler.ins.lerpForRotation = !AimHandler.ins.lerpForRotation;
- this.transform.GetComponentInChildren<Text>().text =
- AimHandler.ins.lerpForRotation ? "关闭镜头旋转插值" : "开启镜头旋转插值";
- }
- }
|