mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 10:20:10 +00:00
增加LiquidChart水位图
This commit is contained in:
@@ -792,5 +792,21 @@ namespace XCharts
|
||||
return new Vector3(-dire.y / dire.x, 1, 0).normalized;
|
||||
}
|
||||
}
|
||||
|
||||
public static float GetRuntimeRelativeOrAbsoluteValue(float check, float total)
|
||||
{
|
||||
if (check <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (check <= 1)
|
||||
{
|
||||
return total * check;
|
||||
}
|
||||
else
|
||||
{
|
||||
return check;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user