Esempio n. 1
0
 // 只有从开头动画进入主城 才有可能是第一次进入游戏
 void LoadedCallBack(string sceneName)
 {
     StageMgr.OnSceneLoaded -= LoadedCallBack;
     GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_EnterMainScene);
     if (GamePlayer.Instance.IsFirstLogin)
     {
         NpcRenwuUI.talkFinishCallBack_ = () =>
         {
             if (GamePlayer.Instance.BattleBaby != null)
             {
                 GetBabyPanelUI.ShowMe(GamePlayer.Instance.BattleBaby.GetIprop(PropertyType.PT_TableId));
             }
             else
             {
                 GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_FirstEnterMainScene);
             }
         };
         bool ret = GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_Talk_FirstEnterMainScene);
         if (!ret)
         {
             GetBabyPanelUI.ShowMe(GamePlayer.Instance.BattleBaby.GetIprop(PropertyType.PT_TableId));
             NpcRenwuUI.talkFinishCallBack_ = null;
         }
     }
 }
Esempio n. 2
0
 void showNewBaby(int babyid)
 {
     GetBabyPanelUI.ShowMe(babyid);
     //ClearInfo ();
     UpdeateItem();
     //enterBtn.isEnabled = false;
 }
Esempio n. 3
0
    public static int ShowGainBabyEffect(ILuaState lua)
    {
        int stk    = 1;
        int babyId = L.ToInteger(stk++);

        GetBabyPanelUI.ShowMe(babyId);
        return(0);
    }