Logo.cs 339 B

12345678910111213141516
  1. using UnityEngine;
  2. using System.Collections;
  3. public class Logo : MonoBehaviour {
  4. // Use this for initialization
  5. void Start ()
  6. {
  7. for(int i=0; i<transform.childCount; i++)
  8. {
  9. Transform child = transform.GetChild(i);
  10. if(child.name != Language.GetCurrentLanguage().ToString())
  11. child.gameObject.SetActive(false);
  12. }
  13. }
  14. }