This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private bool _busy = false; | |
public void TimeCheck(Action callback) | |
{ | |
if (!_busy) | |
{ | |
_busy = true; | |
DateTime before = DateTime.Now; | |
callback.Invoke(); | |
DateTime after = DateTime.Now; | |
TimeSpan duration = after.Subtract(before); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace UnityTemplateProjects | |
{ | |
public class SimpleCameraController : MonoBehaviour | |
{ | |
class CameraState | |
{ | |
public float yaw; | |
public float pitch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using TMPro; | |
public class TMPMatchSize : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[Tooltip("This is the size of what you want all of the texts to be set to.")] | |
public float targetSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(GridLayoutGroup), typeof(RectTransform))] | |
public class ScaleableGridContent : MonoBehaviour | |
{ | |
[Header("Settings")] |