Пример #1
0
 public void RunPlaceEvent(string place)
 {
     if (EventManager.GetInstance().GetCurrentEventAt(place) != null)
     {
         GameNode next = EventManager.GetInstance().RunEvent(place);
         if (next != null)
         {
             sm.StopBGM();
             mapNode.ChooseNext(next);
         }
     }
     else
     {
         Debug.LogError("没有获取到事件!返回值为空");
     }
 }