Commit c2506a6e authored by radow's avatar radow

Settings Menu

parent ac0f5843
fileFormatVersion: 2
guid: 8e03cbc16dc250349a03576f59b1292c
TextureImporter:
fileIDToRecycleName: {}
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 9
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
......@@ -31,7 +31,7 @@ TextureImporter:
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
filterMode: 0
aniso: -1
mipBias: -100
wrapU: 1
......@@ -97,11 +97,13 @@ TextureImporter:
outline: []
physicsShape: []
bones: []
spriteID:
spriteID: f6191238386299542a7d6544a4389c61
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
......
fileFormatVersion: 2
guid: 7cc7032eda7817445a9f46c92b65c8b7
ModelImporter:
serializedVersion: 25
internalIDToNameTable: []
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f1097ad6682086e41ad45334a7832524
ModelImporter:
serializedVersion: 25
internalIDToNameTable: []
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -27,6 +27,9 @@ public class MainMenu : MonoBehaviour
public Transform Shipcamanchor;
public Transform Inviscube;
public GameObject SGButton;
public GameObject ContButton;
enum StarGameStarges {MMENU, SET, CRED,PLAYMODE };
StarGameStarges sgs;
......@@ -37,6 +40,7 @@ public class MainMenu : MonoBehaviour
public void SG_LerpCam()
{
MenuUI.SetActive(false);
Intromenu.SetActive(false);
Camera.main.transform.DOKill();
intro = false;
......@@ -56,6 +60,8 @@ public class MainMenu : MonoBehaviour
{
Camera.main.transform.DOMove(MenuCamanchor.position, SET_Lerpduration).OnComplete(MM_FinishLerpCam);
Camera.main.transform.DORotate(MenuCamanchor.eulerAngles, SET_Lerpduration);
SettingsUI.SetActive(false);
}
private void CRED_LerpCam()
......@@ -106,7 +112,9 @@ public class MainMenu : MonoBehaviour
//SG_LerpCam();
//StartFlythrought();
prepareFlythrought();
Startgametext.text = "Continue";
//Startgametext.text = "Continue";
SGButton.SetActive(false);
ContButton.SetActive(true);
}
void prepareFlythrought()
......@@ -162,4 +170,9 @@ public class MainMenu : MonoBehaviour
CRED_LerpCam();
}
public void Quitgame()
{
Application.Quit();
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Rendering.PostProcessing;
public class Settings : MonoBehaviour
{
public Slider S_Sensitivity;
public Slider S_Volume;
public Slider S_Brightness;
public Slider S_Contrast;
public PostProcessVolume ppv;
public void ChangeSensitivity()
{
PlayerController.thePlayer.horizontalSensivity = S_Sensitivity.value;
PlayerController.thePlayer.verticalSensivity = S_Sensitivity.value;
}
public void ChangeVolume()
{
AudioListener.volume = S_Volume.value;
}
public void ChangeBrightness()
{
ppv.profile.GetSetting<ColorGrading>().gamma.value = new Vector4(.9f, 1.0f, 1.0f, S_Brightness.value);
}
public void ChangeContrast()
{
ppv.profile.GetSetting<ColorGrading>().contrast.value = S_Contrast.value;
}
}
fileFormatVersion: 2
guid: 39a99129f7905564f895802e37e55ccd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment