mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-21 17:24:45 -05:00
18 lines
338 B
C#
18 lines
338 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Debugger : MonoBehaviour
|
|
{
|
|
float y = 0;
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
if (gameObject.transform.position.y > y)
|
|
{
|
|
y = gameObject.transform.position.y;
|
|
Debug.Log(y.ToString());
|
|
}
|
|
}
|
|
}
|