Ejemplo n.º 1
0
    //从透明返回
    private void StartAlphaBack()
    {
        AlphaChangePercent acPercent = modelAlpha.GetComponent <AlphaChangePercent>();

        if (acPercent == null)
        {
            acPercent = modelAlpha.AddComponent <AlphaChangePercent>();
        }
        acPercent.ShowGameObjInit(modelAlpha, 1f, AlphaSpeed * 0.01f);
    }
Ejemplo n.º 2
0
    //开始透明
    private void StartAlpha()
    {
        AlphaChangePercent acPercent = modelAlpha.GetComponent <AlphaChangePercent>();

        if (acPercent == null)
        {
            acPercent = modelAlpha.AddComponent <AlphaChangePercent>();
        }
        acPercent.FadeGameObjInit(modelAlpha, AlphaValue, AlphaSpeed * 0.01f);
    }