图片闪烁效果

using UnityEngine;
using System.Collections;

public class ShowHide : MonoBehaviour {

    public Texture2D img;
   
    void Update () {
        if (Time.time % 2 < 1)
        {
            guiTexture.texture = img;
        }
        else
            guiTexture.texture = null;
    }

}

你可能感兴趣的:(图片闪烁效果)