treivize
4 年前
当前提交
c978e5d4
共有 2 个文件被更改,包括 23 次插入 和 23 次删除
-
36UOP1_Project/Assets/Scripts/Effects/DissolveHelper.cs
-
10UOP1_Project/Assets/Scripts/Effects/VFXUtil.cs
|
|||
|
|||
public class VFXUtil |
|||
{ |
|||
public static float RemapValue(float value, float low1, float high1, float low2, float high2) |
|||
{ |
|||
float x = low2 + (value - low1) * (high2 - low2) / (high1 - low1); |
|||
return x; |
|||
} |
|||
public static float RemapValue(float value, float low1, float high1, float low2, float high2) |
|||
{ |
|||
float x = low2 + (value - low1) * (high2 - low2) / (high1 - low1); |
|||
return x; |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue