16 lines
316 B
C#
16 lines
316 B
C#
using UnityEngine.Scripting.APIUpdating;
|
|
|
|
namespace LeTai.Asset.TranslucentImage.UniversalRP
|
|
{
|
|
[MovedFrom("LeTai.Asset.TranslucentImage.LWRP")]
|
|
public static class Utilities
|
|
{
|
|
public static int SimplePingPong(int t, int max)
|
|
{
|
|
if (t > max)
|
|
return 2 * max - t;
|
|
return t;
|
|
}
|
|
}
|
|
}
|