using UnityEngine; using UnityEngine.UI; public class SetTag: MonoBehaviour { public void Island() { int ADNnum=Get.GetObjectIndex(SceneModeManager.Selected.name); string newTag; if (gameObject.GetComponent().isOn==true) { newTag = "Island"; } else { newTag = "Untagged"; } //SceneModeManager.Selected.tag = newTag; _G.OBJs[ADNnum][27]= newTag; } public void Set27() { int ADNnum=Get.GetObjectIndex(SceneModeManager.Selected.name); if (gameObject.GetComponent().isOn==true) { _G.OBJs[ADNnum][27] = "nonIsland"; } else { _G.OBJs[ADNnum][27] = "Island"; } } // public static string GetConvertTag(string Tag) // { // return Tag switch // { // "Island" => "Island", // "Untagged" => "Untagged", // "none" => "Untagged", // _ => "Untagged", // }; // } }