public static Fusion Create(string name, Action <Fusion> addComponents = null) { var fuser = new Fusion(name); if (addComponents != null) { fuser.Add(addComponents); } return(fuser); }
public Fusion NewChild(string tag, Action <Fusion> addParts = null) { var child = new Fusion(tag); child.Transform.SetParent(Transform); if (addParts != null) { child.Add(addParts); } return(child); }