Beispiel #1
0
 /// <summary>
 /// 步骤提示
 /// </summary>
 /// <param name="mb"></param>
 /// <param name="id"></param>
 public static void  BuZhouTiShi(this MonoBehaviour mb, int id)
 {
     if (TiShiTextControl.GetInstance())
     {
         TiShiTextControl.GetInstance().ChangeText(id);
     }
 }
Beispiel #2
0
 /// <summary>   ///步骤提示   /// </summary>
 /// <param name="go"></param>
 /// <param name="Tip">提示内容</param>
 /// <param name="useRecord">是否使用记录</param>
 /// <returns></returns>
 public static void BuZhouTiShi(this MonoBehaviour mb, string Tip, bool useRecord = false)
 {
     if (useRecord)
     {
         TiShiDataEntity tiShiEntity = (TiShiDataEntity)(TiShiTextControl.instance.gameObject.GetComponent <TiShiDataModel>().DataEntity);
         tiShiEntity.tiShiStr = Tip;
     }
     else
     {
         if (TiShiTextControl.GetInstance())
         {
             TiShiTextControl.GetInstance().ChangeText(Tip);
         }
     }
 }