void Update() { if (ShowLightBeams) { XLightBeams.ActiveNoInterrupt(); } else { XLightBeams.DeActive(); } if (ShowRaining) { XRaining.ActiveNoInterrupt(); } else { XRaining.DeActive(); } if (ShowVolumeFog) { XffectComponent.SetActive(XVolumeFog.gameObject, true); } else { XffectComponent.SetActive(XVolumeFog.gameObject, false); } if (ShowWaterfall) { XWaterfall.ActiveNoInterrupt(); } else { XWaterfall.DeActive(); } if (ShowPortalCone) { XPortalCone.ActiveNoInterrupt(); } else { XPortalCone.DeActive(); } if (ShowTadpoleGate) { XTadpoleGate.ActiveNoInterrupt(); } else { XTadpoleGate.DeActive(); } if (ShowCrystalEnergy) { XCrystalEnergy.ActiveNoInterrupt(); } else { XCrystalEnergy.DeActive(); } if (ShowSurroundSoul) { XSurroundSoul.ActiveNoInterrupt(); } else { XSurroundSoul.DeActive(); } if (ShowPhantomSwordSlash) { XPhantomSwordSlash.ActiveNoInterrupt(); } else { XPhantomSwordSlash.DeActive(); } if (ShowPhantomSword) { XPhantomSword.ActiveNoInterrupt(); } else { XPhantomSword.DeActive(); } if (ShowTransformSpell) { XTransformSpell.ActiveNoInterrupt(); } else { XTransformSpell.DeActive(); } if (ShowSpreadSlash) { XSpreadSlash.ActiveNoInterrupt(); } else { XSpreadSlash.DeActive(); } if (ShowPinkSoul) { XPinkSoul.ActiveNoInterrupt(); } else { XPinkSoul.DeActive(); } if (ShowSakura) { XSakura.ActiveNoInterrupt(); } else { XSakura.DeActive(); } if (ShowIceImpact) { XIceImpact.ActiveNoInterrupt(); } else { XIceImpact.DeActive(); } if (ShowWindowLight) { XWindowLight.ActiveNoInterrupt(); } else { XWindowLight.DeActive(); } if (ShowVolumetricLight1) { XVolumetricLight1.ActiveNoInterrupt(); } else { XVolumetricLight1.DeActive(); } if (ShowVolumetricLight2) { XVolumetricLight2.ActiveNoInterrupt(); } else { XVolumetricLight2.DeActive(); } if (ShowSuckBlood) { XSuckBlood.ActiveNoInterrupt(); } else { XSuckBlood.DeActive(); } if (ShowCyclone2) { Cyclone2.ActiveNoInterrupt(); } else { Cyclone2.DeActive(); } if (ShowCyclone3) { Cyclone3.ActiveNoInterrupt(); } else { Cyclone3.DeActive(); } if (ShowDevilTrigger) { DevilTrigger.ActiveNoInterrupt(); } else { DevilTrigger.DeActive(); } if (ShowMeshFogVolume) { MeshFogVolume.ActiveNoInterrupt(); } else { MeshFogVolume.DeActive(); } if (ShowGlowTrails) { GlowTrails.ActiveNoInterrupt(); } else { GlowTrails.DeActive(); } }
void OnGUI() { GUI.Label(new Rect(150, 0, 350, 25), "left button to rotate, middle button to pan, wheel to zoom."); GUI.Label(new Rect(200, 18, 200, 25), "xffect pro version 3.0.0"); ScrollPosition = GUI.BeginScrollView(new Rect(0, 0, 140, 600), ScrollPosition, new Rect(0, 0, 140, 800)); ShowLightBeams = GUI.Toggle(new Rect(10, 0, 80, 20), ShowLightBeams, "LightBeams"); ShowRaining = GUI.Toggle(new Rect(10, 20, 80, 20), ShowRaining, "Raining"); ShowVolumeFog = GUI.Toggle(new Rect(10, 40, 80, 20), ShowVolumeFog, "VolumeFog"); ShowWaterfall = GUI.Toggle(new Rect(10, 60, 80, 20), ShowWaterfall, "Waterfall"); ShowPortalCone = GUI.Toggle(new Rect(10, 100, 80, 20), ShowPortalCone, "PortalCone"); ShowTadpoleGate = GUI.Toggle(new Rect(10, 120, 80, 20), ShowTadpoleGate, "TadpoleGate"); ShowCrystalEnergy = GUI.Toggle(new Rect(10, 140, 120, 20), ShowCrystalEnergy, "CrystalEnergy"); ShowSurroundSoul = GUI.Toggle(new Rect(10, 160, 120, 20), ShowSurroundSoul, "SwingAround"); if (GUI.Button(new Rect(10, 80, 120, 20), "RadialEnergy")) { XffectComponent.SetActive(BackgroundWallBottom.gameObject, true); m_checkTime = 0f; XRadialEnergy.ActiveNoInterrupt(); } if (GUI.Button(new Rect(10, 190, 80, 20), "collision1")) { XCollisionTest1.ActiveNoInterrupt(); //show colliders. foreach (Transform child in Colliders) { XffectComponent.SetActive(child.gameObject, true); } XffectComponent.SetActive(Colliders.gameObject, true); } if (GUI.Button(new Rect(10, 210, 80, 20), "collision2")) { XCollisionTest2.ActiveNoInterrupt(); //set collision goal. XCollisionTest2.SetCollisionGoalPos(CollisionGoal); //show colliders. foreach (Transform child in Colliders) { XffectComponent.SetActive(child.gameObject, true); } XffectComponent.SetActive(Colliders.gameObject, true); } if (GUI.Button(new Rect(10, 240, 80, 20), "missile1")) { XMissile1.ActiveNoInterrupt(); XMissile1.transform.position = new Vector3(0, 0, 50); SimpleMissile smile = XMissile1.transform.GetComponent <SimpleMissile>(); smile.Reset(); } if (GUI.Button(new Rect(10, 260, 80, 20), "missile2")) { XMissile2.ActiveNoInterrupt(); XMissile2.transform.position = new Vector3(0, 0, 40); SimpleMissile smile = XMissile2.transform.GetComponent <SimpleMissile>(); smile.Reset(); } if (GUI.Button(new Rect(10, 280, 80, 20), "missile3")) { XMissile3.ActiveNoInterrupt(); XMissile3.transform.position = new Vector3(0, 0, 40); SimpleMissile smile = XMissile3.transform.GetComponent <SimpleMissile>(); smile.Reset(); } if (GUI.Button(new Rect(10, 300, 80, 20), "missile4")) { XMissile4.transform.position = new Vector3(0, 0, 40); XMissile4.ActiveNoInterrupt(); SimpleMissile smile = XMissile4.transform.GetComponent <SimpleMissile>(); smile.Reset(); } if (GUI.Button(new Rect(10, 330, 80, 20), "explosion1")) { XffectComponent.SetActive(BackgroundWallBottom.gameObject, true); m_checkTime = 0f; XExplode1.ActiveNoInterrupt(); } if (GUI.Button(new Rect(10, 350, 80, 20), "explosion2")) { XExplode2.ActiveNoInterrupt(); } if (GUI.Button(new Rect(10, 370, 80, 20), "explosion3")) { XExplode3.ActiveNoInterrupt(); } if (GUI.Toggle(new Rect(10, 390, 120, 20), ShowPhantomSwordSlash, "PhantomSlash")) { ShowPhantomSwordSlash = true; m_checkTime = 0f; XffectComponent.SetActive(BackgroundWallBottom.gameObject, true); } else { ShowPhantomSwordSlash = false; } ShowPhantomSword = GUI.Toggle(new Rect(10, 410, 120, 20), ShowPhantomSword, "PhantomSword"); ShowTransformSpell = GUI.Toggle(new Rect(10, 430, 120, 20), ShowTransformSpell, "TransformSpell"); if (GUI.Button(new Rect(10, 450, 100, 20), "BombAffector")) { XBombAffector.ActiveNoInterrupt(); } //ver 1.2.1 ShowSpreadSlash = GUI.Toggle(new Rect(10, 470, 120, 20), ShowSpreadSlash, "SpreadSlash"); ShowPinkSoul = GUI.Toggle(new Rect(10, 490, 120, 20), ShowPinkSoul, "PinkSoul"); ShowSakura = GUI.Toggle(new Rect(10, 510, 120, 20), ShowSakura, "Sakura"); //ver 1.2.2 if (GUI.Button(new Rect(10, 530, 100, 20), "LevelUp")) { XLevelUp.ActiveNoInterrupt(); } //ver 1.2.3 ShowIceImpact = GUI.Toggle(new Rect(10, 550, 120, 20), ShowIceImpact, "IceImpact"); //ver 1.3.1 if (GUI.Button(new Rect(10, 570, 80, 20), "Dissolve")) { XffectComponent.SetActive(BackgroundWallBottom.gameObject, true); m_checkTime = 0f; XDissolve.ActiveNoInterrupt(); } ShowWindowLight = GUI.Toggle(new Rect(10, 590, 120, 20), ShowWindowLight, "WindowLight"); ShowVolumetricLight1 = GUI.Toggle(new Rect(10, 610, 120, 20), ShowVolumetricLight1, "VolumetricLight1"); ShowVolumetricLight2 = GUI.Toggle(new Rect(10, 630, 120, 20), ShowVolumetricLight2, "VolumetricLight2"); ShowSuckBlood = GUI.Toggle(new Rect(10, 650, 120, 20), ShowSuckBlood, "SuckBlood"); if (GUI.Button(new Rect(10, 670, 120, 20), "Cyclone1")) { Cyclone1.ActiveNoInterrupt(); } ShowCyclone2 = GUI.Toggle(new Rect(10, 690, 120, 20), ShowCyclone2, "Cyclone2"); ShowCyclone3 = GUI.Toggle(new Rect(10, 710, 120, 20), ShowCyclone3, "Cyclone3"); ShowDevilTrigger = GUI.Toggle(new Rect(10, 730, 120, 20), ShowDevilTrigger, "Devil Trigger"); ShowMeshFogVolume = GUI.Toggle(new Rect(10, 750, 120, 20), ShowMeshFogVolume, "MeshFogVolume"); ShowGlowTrails = GUI.Toggle(new Rect(10, 770, 120, 20), ShowGlowTrails, "GlowTrails"); GUI.EndScrollView(); }