示例#1
0
 private void OnResearch(ResearchEvent re)
 {
     if (WaitingUsers.ContainsKey(re.Player.UID))
     {
         re.Player.MessageFrom("AuthMe", red + YouNeedToBeLoggedIn);
     }
 }
示例#2
0
 public static void ResearchItem(IInventoryItem otherItem)
 {
     if (OnResearch != null)
     {
         ResearchEvent researchEvent = new ResearchEvent(otherItem);
         OnResearch(researchEvent);
     }
 }
        public void OnResearch(ResearchEvent re)
        {
            var item = re.ItemDataBlock;

            if (item.name == "Paper")
            {
                re.Cancel();
                re.Player.Notice("You can not Reseach the Paper");
            }
        }
示例#4
0
 public void OnResearch(ResearchEvent evt)
 {
     this.Invoke("On_Research", new object[] { evt });
 }
示例#5
0
 public void OnResearch(ResearchEvent evt)
 {
     Invoke("On_Research", evt);
 }