Exemple #1
0
    /*
     *
     * private void Awake() {
     * //Convert offset to screen space
     *  tooltipOffset = new Vector2(ScreenSpace.Convert(tooltipOffset.x), ScreenSpace.Convert(tooltipOffset.y));
     * }
     * //*/

    private void Update()
    {
        if (!xImageSine.durationElapsed)
        {
            xImageSine.Increment();
            if (xImageSine.durationElapsed)
            {
                xImage.rectTransform.localScale = Vector2.one;
            }
            else
            {
                float _val = 1f + xImageSine.GetSineDuration();
                xImage.rectTransform.localScale = new Vector2(_val, _val);
            }
        }
    }