private bool DoTaskListUsingController(SpellController spellController, PowerTaskList taskList, SpellController.FinishedCallback callback) { if (spellController == null) { Log.Power.Print("PowerProcessor.DoTaskListUsingController() - spellController=null", new object[0]); return(false); } if (!spellController.AttachPowerTaskList(taskList)) { return(false); } spellController.AddFinishedTaskListCallback(new SpellController.FinishedTaskListCallback(this.OnSpellControllerFinishedTaskList)); spellController.AddFinishedCallback(callback); spellController.DoPowerTaskList(); return(true); }