Pracownia-Programowania-Pro.../Assets/Scripts/DungeonGen/RoomCounter.cs
Polarjad 68f6116689 Added map gen
Added enemy spawn, door spawn and despawn
2021-01-18 16:04:50 +01:00

15 lines
329 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RoomCounter : MonoBehaviour
{
private RoomTemplate template;
void Start()
{
template = GameObject.FindGameObjectWithTag("Rooms").GetComponent<RoomTemplate>();
template.rooms.Add(this.gameObject);
}
}