Menu big update

A menu 90%-ának elkészítése a bolt és a bállítások nélkül
This commit is contained in:
bance
2023-03-16 16:43:31 +01:00
parent 8dc0ae98fb
commit fc77728e07
16 changed files with 15777 additions and 731 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 97995a6674f3e448fa8da23b75b09e83
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,106 @@
fileFormatVersion: 2
guid: 97320e10a4ea94a5085e5bf6fd4a2921
ModelImporter:
serializedVersion: 21300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 1
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
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
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}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

14725
Assets/Scenes/Menu.unity Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2c9904e4e33324124a047ffe8b573c9e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,94 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Sockets;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class jatekmanager : MonoBehaviour
{
public static jatekmanager Instance;
public GameState State;
public static event Action<GameState> OnGameStateChanged;
private void Awake()
{
Instance = this;
}
private void Start()
{
UpdateGameState(GameState.Home);
}
public void UpdateGameState(GameState newState)
{
State = newState;
switch (newState)
{
case GameState.Home:
HandleHome();
break;
case GameState.Settings:
HandleSettings();
break;
case GameState.Shop:
HandleShop();
break;
case GameState.Game:
HandleGame();
break;
case GameState.Meghaltal:
HandleMeghaltal();
break;
default:
throw new ArgumentOutOfRangeException(nameof(newState), newState, null);
}
OnGameStateChanged?.Invoke(newState);
}
public enum GameState
{
Home,
Settings,
Shop,
Game,
Meghaltal
}
private async void HandleHome()
{
}
private async void HandleSettings()
{
}
private async void HandleShop()
{
}
private async void HandleGame()
{
}
private async void HandleMeghaltal()
{
}
//application target frame rate
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5a1faa9a1ba58437f92f33c86f8a89a4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
public class menumanager : MonoBehaviour
{
public CinemachineVirtualCamera currentCamera;
// Start is called before the first frame update
void Start()
{
currentCamera.Priority++;
}
public void UpdateCamera(CinemachineVirtualCamera target)
{
currentCamera.Priority--;
currentCamera = target;
currentCamera.Priority++;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 785cdc4d6118041cf86784af33ad3476
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,44 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
public class playbutton : MonoBehaviour
{
public CinemachineVirtualCamera currentCamera;
public CinemachineTrackedDolly cinemachineTrackedDolly;
public CinemachinePathBase.PositionUnits m_PositionUnits;
public CinemachineTrackedDolly dolly;
public CinemachineSmoothPath smoothPath;
public CinemachinePath utvonal;
public float pathPosition = 0.0f;
public float speed = 0.2f;
public float pathLength;
public GameObject playButton;
public Transform cameraTransform;
public Vector3 cameraTransformOriginal;
private void Start()
{
//CinemachineVirtualCamera.GetComponent<CinemachineVirtualCamera>;
pathPosition = 0.0f;
cinemachineTrackedDolly = currentCamera.GetCinemachineComponent<CinemachineTrackedDolly>();
pathLength = utvonal.MaxPos;
}
public void PlayButton()
{
playButton.SetActive(false);
if (pathPosition < pathLength)
{
pathPosition += speed;
cinemachineTrackedDolly.m_PathPosition = pathPosition;
//smoothPath.m_PathPosition = pathPosition;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 87ae71cc7940e4650b0424d51e2b8e28
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: