blob: 1cbb64d56bde8674746a01c7dde532f1c5ef5e7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using mh;
using MH;
using Unity.VisualScripting;
namespace mh
{
[DefaultExecutionOrder(-1000)]
public class TestQuadtree : MonoBehaviour
{
private void Awake()
{
}
private void FixedUpdate()
{
var pos = UnitManager.hero.transform.position;
PhysicsManager.Instance.quadtreeCollisionRange = new Vector4(pos.x, pos.y, 50, 50);
PhysicsManager.Instance.quadtreeHurtboxRange = new Vector4(pos.x, pos.y, 50, 50);
PhysicsManager.Instance.Update();
}
private void OnDrawGizmos()
{
PhysicsManager.Instance.Debug();
}
}
}
|