PlayProgress.cs 521 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using ShadowKit;
  5. using ShadowKit.Action;
  6. using SC.InputSystem;
  7. public class PlayProgress : MonoBehaviour {
  8. void Start () {
  9. }
  10. void Update () {
  11. if (API_InputSystem.Target == gameObject)
  12. {
  13. float v = Mathf.InverseLerp(-0.2f, 0.7f, API_InputSystem.Position.x);
  14. Debug.Log(API_InputSystem.Position.x + " " + transform.position.x + " " + v);
  15. }
  16. }
  17. }