//bool Is_Tower_Near = false; void Awake() { if (autoSetting) { switch (ObjType) { case AllType.NormalCube: Obj_Name = "Normal Cube"; Is_canbePulled = true; Canbe_Grab = true; break; case AllType.Monitor: Obj_Name = "Monitor"; break; case AllType.Tower: Obj_Name = "Tower"; Canbe_Grab = true; break; case AllType.CNN_image_classifier: Obj_Name = "CNN_Image_Classifier"; break; case AllType.Player: Obj_Name = "Player"; Is_canbePulled = true; break; case AllType.PlatForm: Obj_Name = "Platform"; Platform_Pull = true; break; case AllType.Door: Obj_Name = "Door"; break; case AllType.puzzle_Hologram: Obj_Name = "Hologram Section"; break; case AllType.Button: Obj_Name = "Button"; break; default: Obj_Name = "Null"; break; } } repository_script = GameObject.Find("Repository_Obj").GetComponent <Repository_sprite_material>(); }
public void Get_Control_Signal(int signalNum) { Repository_sprite_material script_Repository = repository_Obj.GetComponent <Repository_sprite_material>(); if (signalNum == 0) { TOWER_CONTROLL = !TOWER_CONTROLL; script_Repository.Get_Tower_Control_Change_Signal(this.gameObject); } else { TOWER_CONTROLL = false; } if (TOWER_CONTROLL) { marker_Renderer.material = material_Array[4]; } else { marker_Renderer.material = material_Array[0]; } }