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

// AABB hitbox
public class HitBoxTest : MonoBehaviour
{
	public bool DrawGizmo;

	[SerializeField]
	private bool m_IsActive;

	[SerializeField]
	private Vector3 m_TopLeft, m_RightBottom; 

	private void OnDrawGizmos()
	{
		if (!DrawGizmo) return;
		Gizmos.color = Color.green;
		Vector3 topleft = transform.position + m_TopLeft;
		Vector3 rightbottom = transform.position + m_RightBottom;
		Gizmos.DrawCube((topleft + rightbottom) / 2, rightbottom - topleft);		
	}

	// Start is called before the first frame update
	void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}