public IWorkFile MakeFile(List <IWorkFile> ExcelMakeWorkList) { List <List <Work> > allWorks = new List <List <Work> >(); foreach (var temp in workFileList) { MakeFunction function = TypeFileList[temp.Extension]; a } }
// Use this for initialization void Start() { toolItem = GetComponent <Button>(); toolNameText = GetComponentInChildren <Text>(); toolItem.onClick.AddListener(delegate { //makeFunction = GameObject.Find("ChangYongPanel/LeftPanel").GetComponent<MakeFunction>(); makeFunction = GameObject.Find("WashaManager").GetComponent <MakeFunction>(); makeFunction.ToolInstant(toolNameText.text); }); }
/// <summary> /// called by a scheduler dll to register itself with the factory /// </summary> /// <param name="type">string used to identify the scheduler</param> /// <param name="factory">factory function to make a concrete instance of the scheduler</param> /// <returns>true if it was registered</returns> public static void Register(string type, MakeFunction factory) { registrations.Add(type, factory); }