using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThrowArrowRotate : MonoBehaviour
{
    private ThrowPrefect pr;
    
    private void Awake()
    {
        pr = GetComponent<ThrowPrefect>();
    }


    // Update is called once per frame
    void Update()
    {
        float zAngle = pr.GetArrowRotate();
        transform.rotation=Quaternion.Euler(new Vector3(0,0,zAngle));
    }
}
