public CanPowerDown(ActorInitializer init) { PowerManager = init.self.Owner.PlayerActor.Trait <PowerManager>(); normalPower = init.self.Info.Traits.Get <BuildingInfo>().Power; }
public void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner) { PlayerPower = newOwner.PlayerActor.Trait <PowerManager>(); }
public RequiresPower(Actor self) { power = self.Owner.PlayerActor.Trait <PowerManager>(); }