public static IEnumerator DelayedEquipTool(int toolIndex) { yield return(new WaitForSeconds(CharacterAnimator.GetCurrentAnimState().length)); toolToEquipIndex = toolIndex; doSwitch = true; PlayerTools.SetCurrentlyEquippedTool(toolToEquipIndex); }
public static IEnumerator DelayedEquipTool(int toolIndex) { yield return(new WaitForSeconds(CharacterAnimator.GetCurrentAnimState().length)); toolToEquipIndex = toolIndex; doSwitch = true; PlayerTools.SetCurrentlyEquippedTool(toolToEquipIndex); }