コード例 #1
0
 public static void Pop(string info)
 {
     if (script == null)
     {
         GameObject obj = GameObject.Find("InfoPanel");
         if (obj != null)
         {
             script = obj.GetComponent <InfoPanelScript>();
             if (script == null)
             {
                 Debug.LogError("can not find InfoPanel with InfoPanelScript");
             }
         }
     }
     if (script != null)
     {
         script.SetText(info);
     }
 }