public GrantTimedConditionOnDeploy(ActorInitializer init, GrantTimedConditionOnDeployInfo info) { self = init.Self; this.info = info; canTurn = self.Info.HasTraitInfo <IFacingInfo>(); body = Exts.Lazy(self.TraitOrDefault <WithSpriteBody>); }
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(); }