// Invoke event; protected virtual void DistributeTasks(TaskArgs e) { if (newTasksEvent != null) { newTasksEvent(this, e); // trigger the event, if there are any listeners } }
void newTasksHandler(object sender, TaskArgs e) { addTasks(e.theTasks); // if (e.storyMode != 0) { // // storyMode = e.storyMode; // Debug.Log (me+"storymode "+e.storyMode); // // } }
void newTasksHandler(object sender, TaskArgs e) { addTasks(e.theTasks); }