void INotifyAddedToWorld.AddedToWorld(Actor self) { watcher = self.Owner.PlayerActor.Trait <GpsRadarWatcher>(); if (!IsTraitDisabled) { TraitEnabled(self); } }
public Traits(Player player, FrozenUnderFogUpdatedByGpsRadar frozenUnderFogUpdatedByGps) { FrozenActorLayer = player.FrozenActorLayer; GpsWatcher = player.PlayerActor.TraitOrDefault <GpsRadarWatcher>(); GpsWatcher.RegisterForOnGpsRefreshed(frozenUnderFogUpdatedByGps.self, frozenUnderFogUpdatedByGps); }