TheKingsRace/Assets/Debugger.cs
wheatv3015 c779bafcff Start of Valley Greybox
-Added Debugger script for testing max player height on a jump
-Added Malcolm's Toy block package for testing and level building
-Updated Toy block prefabs to be proper scale
-Started tutorial (valley) area greyboxing
2021-11-18 22:45:20 -06:00

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