Compare commits
47 Commits
Author | SHA1 | Date | |
---|---|---|---|
6f64065e7d | |||
04289c7711 | |||
cba6df902a | |||
5f68cbebe4 | |||
3295cdf462 | |||
b991d2f632 | |||
2651e66a21 | |||
562f3e5514 | |||
ccb6ac8370 | |||
dcbc536143 | |||
88e182c7c8 | |||
36018dbfb4 | |||
f8e6da58b4 | |||
56714ca605 | |||
263d4269f0 | |||
896f9e1e37 | |||
0d0fa355cd | |||
149bb7fa70 | |||
95532a1839 | |||
8b71a920ae | |||
d4768d590b | |||
a51631152b | |||
f53b505860 | |||
ce10b0f75c | |||
5b2fb857d4 | |||
f5a594d323 | |||
72950b2600 | |||
05a1863098 | |||
b48c8ca1b0 | |||
911ef42ce8 | |||
5c89ad04d5 | |||
13ff406b2f | |||
6081db5b15 | |||
cb269cfa70 | |||
4731dc637d | |||
c660f5189b | |||
a540ef731e | |||
93a7374e4b | |||
bdd170b1d7 | |||
28424c83c5 | |||
e27b9cdedb | |||
dacf144945 | |||
95ced8e234 | |||
1040da0484 | |||
ce43ecdef8 | |||
50ec58d9a8 | |||
dca0c8d0c1 |
40
Assets/EnableMenuSript.cs
Normal file
40
Assets/EnableMenuSript.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class EnableMenuSript : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject _Menu;
|
||||
[SerializeField] private Button[] _Button = new Button[2];
|
||||
|
||||
public void EnableMenu()
|
||||
{
|
||||
if (_Menu.activeSelf)
|
||||
{
|
||||
_Menu.SetActive(false);
|
||||
Time.timeScale = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
GameObject selectedObject = EventSystem.current.currentSelectedGameObject;
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if (selectedObject != null)
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Button
|
||||
Button selectedButton = selectedObject.GetComponent<Button>();
|
||||
|
||||
if (selectedButton != null)
|
||||
{
|
||||
selectedButton.GetComponent<Image>().color = Color.white;
|
||||
}
|
||||
}
|
||||
|
||||
_Menu.SetActive(true);
|
||||
_Button[0].Select();
|
||||
Time.timeScale = 0f;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
11
Assets/EnableMenuSript.cs.meta
Normal file
11
Assets/EnableMenuSript.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf8d5c78394201c448987bead5bf92a9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f496e968724e66e41b96f91c68d87a3a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6230f3a118261c5458c1e497819b70e3
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Fantastic City Generator/Fantastic City Generator/BackGrounds/FBX/_Background.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Fantastic City Generator/Fantastic City Generator/BackGrounds/FBX/_Background.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,95 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d5f1f0dec1bc7294d95414195e54d67e
|
||||
ModelImporter:
|
||||
serializedVersion: 22
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
400000: //RootNode
|
||||
2300000: //RootNode
|
||||
3300000: //RootNode
|
||||
4300000: Background
|
||||
externalObjects:
|
||||
- first:
|
||||
type: UnityEngine:Material
|
||||
assembly: UnityEngine.CoreModule
|
||||
name: Background
|
||||
second: {fileID: 2100000, guid: 87e4e5b3e8657b94e99fe5571d913fe3, type: 2}
|
||||
materials:
|
||||
importMaterials: 1
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 0
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
rigImportErrors:
|
||||
rigImportWarnings:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1.3
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importVisibility: 0
|
||||
importBlendShapes: 1
|
||||
importCameras: 0
|
||||
importLights: 0
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 1
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
preserveHierarchy: 0
|
||||
indexFormat: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 0
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
serializedVersion: 2
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 0
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user