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