Example #1
0
 public static void Prefix(string key, Story.GoalType goalType)
 {
     if (!StoryGoalManager.main.completedGoals.Contains(key))
     {
         StoryEventSend packet = new StoryEventSend((StoryEventSend.EventType)goalType, key);
         NitroxServiceLocator.LocateService <IPacketSender>().Send(packet);
     }
 }
Example #2
0
 public static void Prefix(string key, Story.GoalType goalType)
 {
     if (!StoryGoalManager.main.completedGoals.Contains(key))
     {
         StoryEventSend packet = new(goalType.ToDto(), key);
         Resolve <IPacketSender>().Send(packet);
     }
 }