Exemple #1
0
        public AntHole(ActorInitializer init, AntHoleInfo info)
        {
            this.info = info;
            var self = init.Self;

            body = self.Trait <WithAntHoleBody>();
        }
Exemple #2
0
        public AntHole(ActorInitializer init, AntHoleInfo info)
        {
            this.info = info;
            var self = init.Self;

            wsbs = self.TraitsImplementing <WithSpriteBody>().Where(w => info.BodyNames.Contains(w.Info.Name)).ToArray();
        }