Skip to content
Snippets Groups Projects
Commit d50963a6 authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

added making map again after boss is dead

parent fc2ab1f6
No related branches found
No related tags found
1 merge request!79Ruud1
......@@ -15,18 +15,33 @@ namespace Bigsock
[SerializeField]
private CinemachineConfiner2D cameraMap;
private int levels = 1;
Vector3 offset = new Vector3(0, 0, -10);
int i = 0;
GameObject[] boss;
GameObject player;
GameObject door;
void Start()
{
neighborMapGenerator.RunProceduralGeneration();
player = GameObject.Find("BigSock");
}
void LateUpdate()
{
boss = GameObject.FindGameObjectsWithTag("Boss");
if (boss.Length == 0 && levels <= 1)
{
neighborMapGenerator.RunProceduralGeneration();
player.transform.position = new Vector3(9, 5, 0);
levels++;
}
int i = 0;
if(i == 0) {
cameraMap.InvalidateCache();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment