using System; using System.Collections; using System.Collections.Generic; using BITFALL.GameMode; using BITKit; using Unity.Mathematics; using UnityEngine; namespace BITFALL.LootSystem { public class UnityInfoLootSpawn : MonoBehaviour,InfoLootSpawn { [SerializeField] private Vector3 size; public string[] Tags { get; set; } public float3 Position { get; set; } public float3 Size { get; set; } private void OnEnable() { Tags = TryGetComponent(out var _tag) ? _tag.GetTags() : Array.Empty(); Position = transform.position; Size = size; NodeQuery.Register(this); } private void OnDisable() { NodeQuery.Unregister(this); } private void OnDrawGizmos() { Gizmos.color = Color.green; Gizmos.DrawWireCube(transform.position,Size); } } }