using System;
using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
using UnityEditor;
using UnityEditor.Experimental.GraphView;
using UnityEngine;
using UnityEngine.UIElements;
public class GunRotator : MonoBehaviour
{
[SerializeField] private GameObject gun;
private void Update()
{
Vector3 localScale = new Vector3(1,1,1);
if (transform.rotation.eulerAngles.z > 90 && transform.rotation.eulerAngles.z < -90)
{
localScale.y = -1;
}
else {
localScale.y = 1;
}
}
}