//从透明返回 private void StartAlphaBack() { AlphaChangePercent acPercent = modelAlpha.GetComponent <AlphaChangePercent>(); if (acPercent == null) { acPercent = modelAlpha.AddComponent <AlphaChangePercent>(); } acPercent.ShowGameObjInit(modelAlpha, 1f, AlphaSpeed * 0.01f); }
//开始透明 private void StartAlpha() { AlphaChangePercent acPercent = modelAlpha.GetComponent <AlphaChangePercent>(); if (acPercent == null) { acPercent = modelAlpha.AddComponent <AlphaChangePercent>(); } acPercent.FadeGameObjInit(modelAlpha, AlphaValue, AlphaSpeed * 0.01f); }