Пример #1
0
 protected override void Created(Actor self)
 {
     DeployTraits    = self.TraitsImplementing <IIssueDeployOrder>().ToArray();
     PrimaryBuilding = self.Info.HasTraitInfo <PrimaryBuildingInfo>();
     deployBotModule = self.Owner.PlayerActor.Trait <DeployBotModule>();
 }
Пример #2
0
 void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
 {
     deployBotModule = newOwner.PlayerActor.Trait <DeployBotModule>();
 }