Ejemplo n.º 1
0
        public TeleportNetworkPrimaryExit(Actor self, TeleportNetworkPrimaryExitInfo info)
        {
            this.info = info;
            var trait = self.Info.TraitInfoOrDefault <TeleportNetworkInfo>();

            manager = self.Owner.PlayerActor.TraitsImplementing <TeleportNetworkManager>().Where(x => x.Type == trait.Type).First();
        }
Ejemplo n.º 2
0
 void INotifyAddedToWorld.AddedToWorld(Actor self)
 {
     teleportNetworkManager = self.Owner.PlayerActor.TraitsImplementing <TeleportNetworkManager>().First(x => x.Type == Info.Type);
     IncreaseTeleportNetworkCount(self);
 }