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