Pracownia-Programowania-Pro.../Assets/Scripts/DungeonGen/RoomCounter.cs

15 lines
329 B
C#
Raw Normal View History

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);
}
}