blob: 2ea967e0528159c3df3459969f007efa178f1dc7 (
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.collisionQuadtreeRange = new Vector4(pos.x, pos.y, 30, 20);
PhysicsManager.Instance.hurtboxQuadtreeRange = new Vector4(pos.x, pos.y, 30, 20);
PhysicsManager.Instance.Update();
}
private void OnDrawGizmos()
{
PhysicsManager.Instance.Debug();
}
}
}
|