void Awake() { thisLoggingID = loggingID++; Buttons = new KMSelectable[] { Button0, Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9 }; transform.Find("Background").GetComponent <MeshRenderer>().material.color = new Color(1, 0.1f, 0.1f); MeshRenderer mr = transform.Find("Wiring").GetComponent <MeshRenderer>(); mr.materials[0].color = new Color(0.1f, 0.1f, 0.1f); mr.materials[1].color = new Color(0.3f, 0.3f, 0.3f); mr.materials[2].color = new Color(0.1f, 0.4f, 0.8f); transform.Find("Main Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); transform.Find("Stage Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); Button0.OnInteract += Handle0; Button1.OnInteract += Handle1; Button2.OnInteract += Handle2; Button3.OnInteract += Handle3; Button4.OnInteract += Handle4; Button5.OnInteract += Handle5; Button6.OnInteract += Handle6; Button7.OnInteract += Handle7; Button8.OnInteract += Handle8; Button9.OnInteract += Handle9; Color c = new Color(.71f, .70f, .68f); //new Color(0.91f, 0.88f, 0.86f); Button0.GetComponent <MeshRenderer>().material.color = c; Button1.GetComponent <MeshRenderer>().material.color = c; Button2.GetComponent <MeshRenderer>().material.color = c; Button3.GetComponent <MeshRenderer>().material.color = c; Button4.GetComponent <MeshRenderer>().material.color = c; Button5.GetComponent <MeshRenderer>().material.color = c; Button6.GetComponent <MeshRenderer>().material.color = c; Button7.GetComponent <MeshRenderer>().material.color = c; Button8.GetComponent <MeshRenderer>().material.color = c; Button9.GetComponent <MeshRenderer>().material.color = c; GetComponent <KMBombModule>().OnActivate += ActivateModule; }
void Awake() { if (ignoredModules == null) { ignoredModules = GetComponent <KMBossModule>().GetIgnoredModules("Forget Me Not", new string[] { "14", "42", "501", "A>N<D", "Bamboozling Time Keeper", "Black Arrows", "Brainf---", "Busy Beaver", "Don't Touch Anything", "Floor Lights", "Forget Any Color", "Forget Enigma", "Forget Everything", "Forget Infinity", "Forget It Not", "Forget Maze Not", "Forget Me Later", "Forget Me Not", "Forget Perspective", "Forget The Colors", "Forget Them All", "Forget This", "Forget Us Not", "Iconic", "Keypad Directionality", "Kugelblitz", "Multitask", "OmegaDestroyer", "OmegaForest", "Organization", "Password Destroyer", "Purgatory", "RPS Judging", "Security Council", "Shoddy Chess", "Simon Forgets", "Simon's Stages", "Souvenir", "Tallordered Keys", "The Time Keeper", "Timing is Everything", "The Troll", "Turn The Key", "The Twin", "Übermodule", "Ultimate Custom Night", "The Very Annoying Button", "Whiteout" }); } thisLoggingID = loggingID++; Buttons = new KMSelectable[] { Button0, Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9 }; transform.Find("Background").GetComponent <MeshRenderer>().material.color = new Color(1, 0.1f, 0.1f); MeshRenderer mr = transform.Find("Wiring").GetComponent <MeshRenderer>(); mr.materials[0].color = new Color(0.1f, 0.1f, 0.1f); mr.materials[1].color = new Color(0.3f, 0.3f, 0.3f); mr.materials[2].color = new Color(0.1f, 0.4f, 0.8f); transform.Find("Main Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); transform.Find("Stage Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); Button0.OnInteract += Handle0; Button1.OnInteract += Handle1; Button2.OnInteract += Handle2; Button3.OnInteract += Handle3; Button4.OnInteract += Handle4; Button5.OnInteract += Handle5; Button6.OnInteract += Handle6; Button7.OnInteract += Handle7; Button8.OnInteract += Handle8; Button9.OnInteract += Handle9; Color c = new Color(.71f, .70f, .68f); //new Color(0.91f, 0.88f, 0.86f); Button0.GetComponent <MeshRenderer>().material.color = c; Button1.GetComponent <MeshRenderer>().material.color = c; Button2.GetComponent <MeshRenderer>().material.color = c; Button3.GetComponent <MeshRenderer>().material.color = c; Button4.GetComponent <MeshRenderer>().material.color = c; Button5.GetComponent <MeshRenderer>().material.color = c; Button6.GetComponent <MeshRenderer>().material.color = c; Button7.GetComponent <MeshRenderer>().material.color = c; Button8.GetComponent <MeshRenderer>().material.color = c; Button9.GetComponent <MeshRenderer>().material.color = c; GetComponent <KMBombModule>().OnActivate += ActivateModule; }