public Sandworm(Actor self, SandwormInfo info) : base(self, info) { WormInfo = info; mobile = self.Trait <Mobile>(); attackTrait = self.Trait <AttackBase>(); manager = self.World.WorldActor.Trait <ActorSpawnManager>(); }
public Sandworm(Actor self, SandwormInfo info) : base(self, info) { Info = info; mobile = Exts.Lazy(self.Trait <Mobile>); renderUnit = Exts.Lazy(self.Trait <RenderUnit>); attackTrait = Exts.Lazy(self.Trait <AttackBase>); manager = self.World.WorldActor.Trait <WormManager>(); }
public Sandworm(Actor self, SandwormInfo info) : base(self, info) { Info = info; mobile = Exts.Lazy(self.Trait <Mobile>); withSpriteBody = Exts.Lazy(self.Trait <WithSpriteBody>); attackTrait = Exts.Lazy(self.Trait <AttackBase>); manager = self.World.WorldActor.Trait <WormManager>(); }