Esempio n. 1
0
    public static void LoadCsv()
    {
        var bytes = File.ReadAllBytes(Localization.LangPath);

        LoadCSV(bytes);

        UIRoot.BroadcastMessage("OnLocalize", SendMessageOptions.DontRequireReceiver);
        Debug.Log("Load Localization csv success!");
    }
Esempio n. 2
0
 /// <summary>
 /// Broadcast the specified message to the entire UI.
 /// </summary>
 static public void Broadcast(string funcName)
 {
     for (int i = 0, imax = mRoots.Count; i < imax; ++i)
     {
         UIRoot root = mRoots[i];
         if (root != null)
         {
             root.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
         }
     }
 }
Esempio n. 3
0
    public static void Broadcast(string funcName)
    {
        int i = 0;

        for (int count = list.Count; i < count; i++)
        {
            UIRoot uIRoot = list[i];
            if (uIRoot != null)
            {
                uIRoot.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
            }
        }
    }
Esempio n. 4
0
 /// <summary>
 /// Broadcast the specified message to the entire UI.
 /// </summary>
 public static void Broadcast(string funcName)
 {
     #if UNITY_EDITOR
     if (Application.isPlaying)
     #endif
     {
         for (int i = 0, imax = list.Count; i < imax; ++i)
         {
             UIRoot root = list[i];
             if (root != null) root.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
         }
     }
 }
Esempio n. 5
0
    public static void Broadcast(string funcName)
    {
        int i = 0;

        for (int count = list.Count; i < count; i++)
        {
            UIRoot uIRoot = list[i];
            if (uIRoot != null)
            {
                uIRoot.BroadcastMessage(funcName, 1);
            }
        }
    }
Esempio n. 6
0
    // Token: 0x060036A4 RID: 13988 RVA: 0x00117394 File Offset: 0x00115794
    public static void Broadcast(string funcName)
    {
        int i     = 0;
        int count = UIRoot.list.Count;

        while (i < count)
        {
            UIRoot uiroot = UIRoot.list[i];
            if (uiroot != null)
            {
                uiroot.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
            }
            i++;
        }
    }
Esempio n. 7
0
    public static void Broadcast(string funcName)
    {
        int num   = 0;
        int count = mRoots.Count;

        while (num < count)
        {
            UIRoot root = mRoots[num];
            if (root != null)
            {
                root.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
            }
            num++;
        }
    }
    public static void Broadcast(string funcName)
    {
        int i     = 0;
        int count = UIRoot.list.get_Count();

        while (i < count)
        {
            UIRoot uIRoot = UIRoot.list.get_Item(i);
            if (uIRoot != null)
            {
                uIRoot.BroadcastMessage(funcName, 1);
            }
            i++;
        }
    }
Esempio n. 9
0
    public static void Broadcast(String funcName)
    {
        Int32 i     = 0;
        Int32 count = mRoots.Count;

        while (i < count)
        {
            UIRoot uiroot = mRoots[i];
            if (uiroot != null)
            {
                uiroot.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
            }
            i++;
        }
    }
Esempio n. 10
0
    public static void Broadcast(String funcName)
    {
        Int32 i     = 0;
        Int32 count = UIRoot.list.Count;

        while (i < count)
        {
            UIRoot uiroot = UIRoot.list[i];
            if (uiroot != (UnityEngine.Object)null)
            {
                uiroot.BroadcastMessage(funcName, SendMessageOptions.DontRequireReceiver);
            }
            i++;
        }
    }
Esempio n. 11
0
 /// <summary>
 /// Broadcast the specified message to the entire UI.
 /// </summary>
 public static void Broadcast(string funcName, object param)
 {
     if (param == null)
     {
         // More on this: http://answers.unity3d.com/questions/55194/suggested-workaround-for-sendmessage-bug.html
         Debug.LogError("SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
     }
     else
     {
         for (int i = 0, imax = list.Count; i < imax; ++i)
         {
             UIRoot root = list[i];
             if (root != null) root.BroadcastMessage(funcName, param, SendMessageOptions.DontRequireReceiver);
         }
     }
 }
Esempio n. 12
0
    public static void Broadcast(string funcName, object param)
    {
        if (param == null)
        {
            Debug.LogError("SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
            return;
        }
        int i = 0;

        for (int count = list.Count; i < count; i++)
        {
            UIRoot uIRoot = list[i];
            if (uIRoot != null)
            {
                uIRoot.BroadcastMessage(funcName, param, SendMessageOptions.DontRequireReceiver);
            }
        }
    }
Esempio n. 13
0
 public static void Broadcast(string funcName, object param)
 {
     if (param == null)
     {
         Debug.LogError((object)"SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
     }
     else
     {
         int i = 0;
         for (int count = list.Count; i < count; i++)
         {
             UIRoot uIRoot = list[i];
             if (uIRoot != null)
             {
                 uIRoot.BroadcastMessage(funcName, param, 1);
             }
         }
     }
 }
Esempio n. 14
0
 public static void Broadcast(string funcName, object param)
 {
     if (param == null)
     {
         Debug.LogError("SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
     }
     else
     {
         int num   = 0;
         int count = mRoots.Count;
         while (num < count)
         {
             UIRoot root = mRoots[num];
             if (root != null)
             {
                 root.BroadcastMessage(funcName, param, SendMessageOptions.DontRequireReceiver);
             }
             num++;
         }
     }
 }
Esempio n. 15
0
 public static void Broadcast(string funcName, object param)
 {
     if (param == null)
     {
         global::Debug.LogError("SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
     }
     else
     {
         int i     = 0;
         int count = UIRoot.list.Count;
         while (i < count)
         {
             UIRoot uiroot = UIRoot.list[i];
             if (uiroot != null)
             {
                 uiroot.BroadcastMessage(funcName, param, SendMessageOptions.DontRequireReceiver);
             }
             i++;
         }
     }
 }
 public static void Broadcast(string funcName, object param)
 {
     if (param == null)
     {
         Debug.LogError("SendMessage is bugged when you try to pass 'null' in the parameter field. It behaves as if no parameter was specified.");
     }
     else
     {
         int i     = 0;
         int count = UIRoot.list.get_Count();
         while (i < count)
         {
             UIRoot uIRoot = UIRoot.list.get_Item(i);
             if (uIRoot != null)
             {
                 uIRoot.BroadcastMessage(funcName, param, 1);
             }
             i++;
         }
     }
 }