示例#1
0
        void INotifyAddedToWorld.AddedToWorld(Actor self)
        {
            watcher = self.Owner.PlayerActor.Trait <GpsRadarWatcher>();

            if (!IsTraitDisabled)
            {
                TraitEnabled(self);
            }
        }
示例#2
0
 public Traits(Player player, FrozenUnderFogUpdatedByGpsRadar frozenUnderFogUpdatedByGps)
 {
     FrozenActorLayer = player.FrozenActorLayer;
     GpsWatcher       = player.PlayerActor.TraitOrDefault <GpsRadarWatcher>();
     GpsWatcher.RegisterForOnGpsRefreshed(frozenUnderFogUpdatedByGps.self, frozenUnderFogUpdatedByGps);
 }