Closed tsyu12345 closed 3 months ago
Master-Simulator\Assets\Scripts\PLATEAUEnvManager.cs
private void RegisterTowers() {
Towers.Clear();
var towers = GameObject.FindGameObjectsWithTag(Tags.Tower);
foreach(var towerObj in towers) {
Tower tower = towerObj.GetComponent<Tower>(); //なぜかNullになっている
tower.uuid = Guid.NewGuid().ToString();
Towers.Add(towerObj);
}
}
単なるTowerコンポーネントの付け忘れだった
起動時にエラー
36