Unity图片闪烁效果

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;
    }

}
posted @ 2012-08-02 10:55  Marble  阅读(1972)  评论(0编辑  收藏  举报