Beispiel #1
0
        public static void alphaShowHideObject(string objName, bool isShow)
        {
            GameObject     obj  = GameObject.Find(objName);
            FadeGameObject fade = obj.AddComponent <FadeGameObject>();

            fade.setFadeObject(obj, isShow);
        }
Beispiel #2
0
 public static void alphaShowHideTagObject(string tag, bool isShow)
 {
     GameObject[] objs = GameObject.FindGameObjectsWithTag(tag);
     if (objs != null)
     {
         FadeGameObject fade = objs[0].AddComponent <FadeGameObject>();
         fade.setFadeObjects(new List <GameObject>(objs), isShow);
     }
 }