示例#1
0
        public static Turrent CreateTurrent(FlyEntity parent = null)
        {
            var entity = new Turrent();

            entity.DrawStrategy = new TurrentDrawStrategy();

            if (parent != null)
            {
                entity.AttachTo(parent);
            }

            return(entity);
        }
示例#2
0
 public void AttachTo(FlyEntity newParent)
 {
     newParent.transform.AddChild(this.transform);
 }