Пример #1
0
        void INotifyAddedToWorld.AddedToWorld(Actor self)
        {
            watcher = self.Owner.PlayerActor.Trait <GpsASWatcher>();

            if (!IsTraitDisabled)
            {
                TraitEnabled(self);
            }
        }
 public Traits(Player player, FrozenUnderFogUpdatedByGpsAS frozenUnderFogUpdatedByGps)
 {
     FrozenActorLayer = player.FrozenActorLayer;
     GpsWatcher       = player.PlayerActor.TraitOrDefault <GpsASWatcher>();
     GpsWatcher.RegisterForOnGpsRefreshed(frozenUnderFogUpdatedByGps.self, frozenUnderFogUpdatedByGps);
 }