public static Turrent CreateTurrent(FlyEntity parent = null) { var entity = new Turrent(); entity.DrawStrategy = new TurrentDrawStrategy(); if (parent != null) { entity.AttachTo(parent); } return(entity); }
public void AttachTo(FlyEntity newParent) { newParent.transform.AddChild(this.transform); }