//called by animation
 void FinishedCast()
 {
     Debug.Log("Finished Cast");
     scheduler.ReleaseLock();
 }