Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        var renderer = GetComponent <SpriteRenderer>();

        renderer.color = new Color(renderer.color.r, renderer.color.g, renderer.color.b, 0);
        StartCoroutine(SpriteHelper.FadeIn(renderer, 1.0f));
    }
Example #2
0
    // Start is called before the first frame update
    void Start()
    {
        speed       = 0.01f;
        scaleTarget = transform.localScale;
        initScale   = transform.localScale;

        var renderer = GetComponentInChildren <SpriteRenderer>();

        renderer.color = new Color(renderer.color.r, renderer.color.g, renderer.color.b, 0);
        StartCoroutine(SpriteHelper.FadeIn(renderer, 1.0f));
    }