private void OnFontDefLoaded(string name, GameObject go, object userData)
 {
     if (go == null)
     {
         this.OnInitialDefLoaded();
     }
     else
     {
         FontDef component = go.GetComponent <FontDef>();
         if (component == null)
         {
             object[] args    = new object[] { name };
             string   message = GameStrings.Format("GLOBAL_ERROR_ASSET_INCORRECT_DATA", args);
             Error.AddFatal(message);
             Debug.LogError(string.Format("FontTable.OnFontDefLoaded() - name={0} message={1}", name, message));
             this.OnInitialDefLoaded();
         }
         else
         {
             component.transform.parent = base.transform;
             this.m_defs.Add(name, component);
             this.OnInitialDefLoaded();
         }
     }
 }
예제 #2
0
 public void FatalMobileError(string msg)
 {
     Error.AddFatal(msg);
 }