private CalcSwatchRect ( |
||
totalRect | ||
s | Swatch | |
Résultat |
private Rect CalcSwatchRect(Rect totalRect, Swatch s)
{
float time = s.m_Time;
return new Rect((totalRect.x + Mathf.Round(totalRect.width * time)) - 5f, totalRect.y, 10f, totalRect.height);
}