Пример #1
0
    protected void MoveToOriginal(Label lbl, Label point, float scale = 1.0f)
    {
        lbl.transform.position = Vector3.Lerp(point.transform.position, lbl.GetOriginalPosition(), timer.GetValue() * scale);

        lbl.transform.localScale = Vector3.Lerp(point.transform.localScale, lbl.GetOriginalScale(), timer.GetValue() * scale);
    }