public static GameObject Generic(MyLib.GameObjectfunction createtype, Action <GameObject> misc) { GameObject gmbjct = createtype(); misc(gmbjct); return(gmbjct); }
public static GameObject Generic(MyLib.GameObjectfunction createtype, Action <Transform> candos) { GameObject gmbjct = createtype(); candos(gmbjct.transform); return(gmbjct); }
public static GameObject[] Generic(int num, MyLib.GameObjectfunction createtype, Action <Transform> candos) { GameObject[] gmbjcts = new GameObject[num]; for (int i = 0; i < num; i++) { candos((gmbjcts[i] = createtype()).transform); } return(gmbjcts); }
public static GameObject[] Generic(int num, MyLib.GameObjectfunction createtype, Action <GameObject> misc) { GameObject[] gmbjcts = new GameObject[num]; for (int i = 0; i < num; i++) { misc(gmbjcts[i] = createtype()); } return(gmbjcts); }
public void SetPlayer(MyLib.GameObjectfunction initializePlayerFunction) { playervars = initializePlayerFunction().SearchComponent <PlayerControlBattle>(); }
public static GameObject Generic(MyLib.GameObjectfunction createtype) { return(createtype()); }