Linux migration.

This commit is contained in:
2022-05-20 22:58:25 +02:00
parent 029e02fd2f
commit 14bbae67e5
16 changed files with 698 additions and 698 deletions

View File

@ -1,36 +1,36 @@
using UnityEngine;
namespace Utils
{
public struct TimeSince
{
private float time;
public static implicit operator float(TimeSince ts)
{
return Time.time - ts.time;
}
public static implicit operator TimeSince(float ts)
{
return new TimeSince { time = Time.time - ts };
}
}
}
// https://garry.tv/timesince
//TimeSince ts;
//void Start()
//{
// ts = 0;
//}
//void Update()
//{
// if (ts > 10)
// {
// DoSomethingAfterTenSeconds();
// }
//}
using UnityEngine;
namespace Utils
{
public struct TimeSince
{
private float time;
public static implicit operator float(TimeSince ts)
{
return Time.time - ts.time;
}
public static implicit operator TimeSince(float ts)
{
return new TimeSince { time = Time.time - ts };
}
}
}
// https://garry.tv/timesince
//TimeSince ts;
//void Start()
//{
// ts = 0;
//}
//void Update()
//{
// if (ts > 10)
// {
// DoSomethingAfterTenSeconds();
// }
//}