-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathQuadTreeItem.cs
More file actions
68 lines (54 loc) · 1.17 KB
/
QuadTreeItem.cs
File metadata and controls
68 lines (54 loc) · 1.17 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using UnityEngine;
public class QuadTreeItem : MonoBehaviour
{
public List<GameObject> GameObjects = new List<GameObject>();
public List</*QuadTreeItem*/GameObject> Children = new List</*QuadTreeItem*/GameObject>();
public enum PositionEnum
{
LEFT_UP,
RIGHT_UP,
LEFT_DOWN,
RIGHT_DOWN,
};
public GameObject TextMeshPrefab = null;
public int Level = 0;
public int Depth = 0;
public GameObject insideGameObject = null;
public GameObject Parent = null;
public Vector3 Position = new Vector3(0.0f, 0.0f, 0.0f);
public Vector3 Size = new Vector3(0.0f, 0.0f, 0.0f);
/*public List<GameObject> GameObjects
{
get
{
return gameObjects;
}
}
public GameObject[] ChildrenArray
{
get
{
return GameObjects.ToArray();
}
}
public List<GameObject> Children
{
get
{
return children;
}
}
public int ChildrenCount {
get
{
return children.Count;
}
}*/
public QuadTreeItem() {}
void Update()
{
//DrawHelper.DrawCube(Position, Size, Color.red);
}
}