Esempio n. 1
0
 public GrantTimedConditionOnDeploy(ActorInitializer init, GrantTimedConditionOnDeployInfo info)
 {
     self      = init.Self;
     this.info = info;
     canTurn   = self.Info.HasTraitInfo <IFacingInfo>();
     body      = Exts.Lazy(self.TraitOrDefault <WithSpriteBody>);
 }
Esempio n. 2
0
 public GrantTimedConditionOnDeploy(ActorInitializer init, GrantTimedConditionOnDeployInfo info)
 {
     self      = init.Self;
     this.info = info;
     canTurn   = self.Info.HasTraitInfo <IFacingInfo>();
     wsbs      = self.TraitsImplementing <WithSpriteBody>().Where(w => info.BodyNames.Contains(w.Info.Name)).ToArray();
 }