IEnumerator WaitForSingleArrowAnimation(GameObject targetObject) { yield return(new WaitForSpineEvent(animationState, "OnTargetHit")); Destroy(boneFollower.GetChild(0).gameObject); ArrowScript arrow = SpawnSingleArrow(); if (arrow) { arrow.ShootSingle(targetObject, Explosion01); GameObject obj = Instantiate(ShootingArrowVFX, arrow.transform.position, arrow.transform.rotation, arrow.transform); obj.transform.LookAt(targetObject.transform.position + new Vector3(0, targetObject.GetComponent <BoxCollider2D>().bounds.size.y / 2)); Instantiate(Explosion01, arrow.transform.position, arrow.transform.rotation); } }