Esempio n. 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);
        }
Esempio n. 2
0
 public void AttachTo(FlyEntity newParent)
 {
     newParent.transform.AddChild(this.transform);
 }