Example #1
0
 void INotifyAddedToWorld.AddedToWorld(Actor self)
 {
     tnm = self.Owner.PlayerActor.TraitsImplementing <TeleportNetworkManager>().First(x => x.Type == Info.Type);
     IncreaseTeleportNetworkCount(self, self.Owner);
 }
 public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
 {
     DecreaseTeleportNetworkCount(self);
     tnm = newOwner.PlayerActor.TraitsImplementing <TeleportNetworkManager>().First(x => x.Type == Info.Type);
     IncreaseTeleportNetworkCount(self);
 }