15 lines
329 B
C#
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);
|
|||
|
}
|
|||
|
}
|