This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <summary> | |
/// This component fades the component in after a number of seconds. For it | |
/// to work, it needs to have a MeshRenderer, and the MeshRenderer needs a | |
/// material that lets you set the alpha, otherwise it totes won't work. | |
/// </summary> | |
[RequireComponent(typeof(MeshRenderer))] | |
public class FadeInAfterSeconds : MonoBehaviour { |