Files
Temp.BattleRoyale.Map.Unity/Assets/RPG_FPS_game_assets/MapGen/Scripts/Add_PA.cs

15 lines
277 B
C#
Raw Normal View History

2024-05-13 01:28:33 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Add_PA : MonoBehaviour {
private Area_tmp tmp;
void Start(){
tmp = GameObject.FindGameObjectWithTag("Areas").GetComponent<Area_tmp>();
tmp.areas.Add(this.gameObject);
}
}