using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FadeIn : MonoBehaviour {

    public UnityEngine.UI.Image img;
    public float time;

	void Update () {
        var c = img.color;
        if (c.a < 0.99f)
            c.a += (1/time) * Time.deltaTime;
        img.color = c;
	}
}
