//EnemyUnitButtonを選択したタイミングで文字を変更する public void changeEnemyOutlineWindow(string unitName) { Enemy forcusEnemy = enemyDatabase.FindByName(unitName); enemyOutlineWindow.UpdateText(forcusEnemy); if (forcusEnemy.equipWeapon != null) { enemyWeaponWindow.GetComponent <DetailWindow>().UpdateBattleWeaponText(forcusEnemy.equipWeapon); } }