mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-05-18 06:14:10 +02:00
Properties are now working
This commit is contained in:
parent
091784c015
commit
0853a4d4f0
33
Assets/LevelLoader.cs
Normal file
33
Assets/LevelLoader.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class LevelLoader : MonoBehaviour
|
||||
{
|
||||
|
||||
public GameObject loadingScreen; //Gets the loading screen
|
||||
public Slider slider; //Gets the slider
|
||||
|
||||
public void LoadLevel (string sceneName)
|
||||
{
|
||||
StartCoroutine(LoadAsynchronously(sceneName)); //Starts the LoadAsynchronously function
|
||||
}
|
||||
|
||||
IEnumerator LoadAsynchronously (string sceneName)
|
||||
{
|
||||
AsyncOperation operation = SceneManager.LoadSceneAsync(sceneName); //Loads the monopoly board.
|
||||
|
||||
loadingScreen.SetActive(true); //Shows the loading screen.
|
||||
|
||||
while (!operation.isDone) //Runs the while loop whilst the level is loading.
|
||||
{
|
||||
float progress = Mathf.Clamp01(operation.progress / .9f); //Makes the unity loading value a nicer value as the original is 0-0.9
|
||||
|
||||
slider.value = progress; //Sets the loading bar progress
|
||||
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
11
Assets/LevelLoader.cs.meta
Normal file
11
Assets/LevelLoader.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 89cbcb58c8de8f14baaea829e70e2cb7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -2,7 +2,7 @@ CREATE TABLE properties (
|
||||
property_id int(2) AUTO_INCREMENT PRIMARY KEY NOT NULL, #Easy way to identify with code
|
||||
property_name TINYTEXT NOT NULL, #The name of the property
|
||||
property_group TINYTEXT NOT NULL, #The group that the property is
|
||||
property_value int(3) NOT NULL, #How much it costs to buy the property
|
||||
property_value int(3), #How much it costs to buy the property
|
||||
property_cost int(3), #How much it is to buy a house/hotel
|
||||
property_rent int(2), #How much it costs to rent
|
||||
property_house1 int(3), #How much it costs with 1 house
|
||||
|
14
Assets/NuGet.config
Normal file
14
Assets/NuGet.config
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="NuGet" value="http://www.nuget.org/api/v2/" />
|
||||
</packageSources>
|
||||
<disabledPackageSources />
|
||||
<activePackageSource>
|
||||
<add key="All" value="(Aggregate source)" />
|
||||
</activePackageSource>
|
||||
<config>
|
||||
<add key="repositoryPath" value="./Packages" />
|
||||
<add key="DefaultPushSource" value="http://www.nuget.org/api/v2/" />
|
||||
</config>
|
||||
</configuration>
|
32
Assets/NuGet.config.meta
Normal file
32
Assets/NuGet.config.meta
Normal file
@ -0,0 +1,32 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb7af4a052c914b459dbdeea27c56ec0
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/NuGet.meta
Normal file
9
Assets/NuGet.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 217cb7caed5f7fb49b339428b1d80974
|
||||
folderAsset: yes
|
||||
timeCreated: 1510280316
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/NuGet/Editor.meta
Normal file
9
Assets/NuGet/Editor.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3fad56c531ac5a4db190a745f589a8e
|
||||
folderAsset: yes
|
||||
timeCreated: 1510280304
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/NuGet/Editor/DotNetZip.dll
(Stored with Git LFS)
Normal file
BIN
Assets/NuGet/Editor/DotNetZip.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
20
Assets/NuGet/Editor/DotNetZip.dll.meta
Normal file
20
Assets/NuGet/Editor/DotNetZip.dll.meta
Normal file
@ -0,0 +1,20 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a8e8091a1f84e704a9f4d4abd2e15f8b
|
||||
timeCreated: 1517875082
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/NuGet/Editor/NugetForUnity.dll
(Stored with Git LFS)
Normal file
BIN
Assets/NuGet/Editor/NugetForUnity.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
20
Assets/NuGet/Editor/NugetForUnity.dll.meta
Normal file
20
Assets/NuGet/Editor/NugetForUnity.dll.meta
Normal file
@ -0,0 +1,20 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8dc1be91775c4bb469f6b74cef450eaa
|
||||
timeCreated: 1510280416
|
||||
licenseType: Free
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
21
Assets/NuGet/LICENSE
Normal file
21
Assets/NuGet/LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Patrick McCarthy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
8
Assets/NuGet/LICENSE.meta
Normal file
8
Assets/NuGet/LICENSE.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d9014b99ad06af428514a5902d29ff3
|
||||
timeCreated: 1573248500
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/NuGet/README.pdf
Normal file
BIN
Assets/NuGet/README.pdf
Normal file
Binary file not shown.
8
Assets/NuGet/README.pdf.meta
Normal file
8
Assets/NuGet/README.pdf.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83c5d2001771f15429a88d67e81366d6
|
||||
timeCreated: 1517876157
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/NuGet/Resources.meta
Normal file
9
Assets/NuGet/Resources.meta
Normal file
@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1738075a39a390447b7a620ca6962142
|
||||
folderAsset: yes
|
||||
timeCreated: 1510280362
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/NuGet/Resources/defaultIcon.png
(Stored with Git LFS)
Normal file
BIN
Assets/NuGet/Resources/defaultIcon.png
(Stored with Git LFS)
Normal file
Binary file not shown.
92
Assets/NuGet/Resources/defaultIcon.png.meta
Normal file
92
Assets/NuGet/Resources/defaultIcon.png.meta
Normal file
@ -0,0 +1,92 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eec19781926cd2248b7c9abfde8db555
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Packages.meta
Normal file
8
Assets/Packages.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe4de15915007ae4db22d8de0e2f29df
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Packages/Newtonsoft.Json.12.0.3.meta
Normal file
8
Assets/Packages/Newtonsoft.Json.12.0.3.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6928d722f45eee4696c3d372fd1a10c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/.signature.p7s
vendored
Normal file
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/.signature.p7s
vendored
Normal file
Binary file not shown.
20
Assets/Packages/Newtonsoft.Json.12.0.3/LICENSE.md
vendored
Normal file
20
Assets/Packages/Newtonsoft.Json.12.0.3/LICENSE.md
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2007 James Newton-King
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
7
Assets/Packages/Newtonsoft.Json.12.0.3/LICENSE.md.meta
vendored
Normal file
7
Assets/Packages/Newtonsoft.Json.12.0.3/LICENSE.md.meta
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3fa8abeff1afca946868f676981a9fae
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/Newtonsoft.Json.12.0.3.nupkg
vendored
Normal file
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/Newtonsoft.Json.12.0.3.nupkg
vendored
Normal file
Binary file not shown.
7
Assets/Packages/Newtonsoft.Json.12.0.3/Newtonsoft.Json.12.0.3.nupkg.meta
vendored
Normal file
7
Assets/Packages/Newtonsoft.Json.12.0.3/Newtonsoft.Json.12.0.3.nupkg.meta
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b66dc3fec50827439e3b935ec67fe6f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Packages/Newtonsoft.Json.12.0.3/lib.meta
vendored
Normal file
8
Assets/Packages/Newtonsoft.Json.12.0.3/lib.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97957d5694757ae419fd907e46665e48
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0.meta
vendored
Normal file
8
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0fa65b332a60f0148b3a70468853324a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.dll
(Stored with Git LFS)
vendored
Normal file
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.dll
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
33
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.dll.meta
vendored
Normal file
33
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.dll.meta
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8773579f31cb03c428effde87973facc
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
11237
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.xml
vendored
Normal file
11237
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.xml.meta
vendored
Normal file
7
Assets/Packages/Newtonsoft.Json.12.0.3/lib/netstandard2.0/Newtonsoft.Json.xml.meta
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4cedacc2e77188544abf65b80a454e93
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/packageIcon.png
(Stored with Git LFS)
vendored
Normal file
BIN
Assets/Packages/Newtonsoft.Json.12.0.3/packageIcon.png
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
92
Assets/Packages/Newtonsoft.Json.12.0.3/packageIcon.png.meta
vendored
Normal file
92
Assets/Packages/Newtonsoft.Json.12.0.3/packageIcon.png.meta
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c16f254a9b5dba4b850d4ec0e3f2543
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -11,6 +11,7 @@ public class Waypoints : MonoBehaviour
|
||||
float rotSpeed;
|
||||
public float speed;
|
||||
double WPradius = 0.001;
|
||||
private properties properties;
|
||||
|
||||
public void UpdateRoll(int passedRoll)
|
||||
{
|
||||
@ -19,9 +20,14 @@ public class Waypoints : MonoBehaviour
|
||||
{
|
||||
roll -= 40;
|
||||
}
|
||||
properties.currentProperty(roll);
|
||||
}
|
||||
|
||||
void Update()
|
||||
void Awake()
|
||||
{
|
||||
properties = GameObject.FindObjectOfType<properties>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if ((Vector3.Distance(waypoints[position].transform.position, transform.position) < WPradius) && position != roll)
|
||||
{
|
||||
|
@ -1,14 +1,26 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
using System;
|
||||
|
||||
public static class Domain
|
||||
{
|
||||
static string domain = "https://monopoly.smyalygames.com/"; //The domain used to access the website.
|
||||
public static string subDomain(string subDirectory)
|
||||
{
|
||||
return (domain + subDirectory); //Adds the subdomain to the website URL
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class WebTest : MonoBehaviour {
|
||||
|
||||
void Start() {
|
||||
StartCoroutine(GetText());
|
||||
}
|
||||
|
||||
IEnumerator GetText() {
|
||||
UnityWebRequest www = UnityWebRequest.Get("https://monopoly.smyalygames.com/test.php");
|
||||
UnityWebRequest www = UnityWebRequest.Get(Domain.subDomain("test.php"));
|
||||
yield return www.SendWebRequest();
|
||||
|
||||
if(www.isNetworkError || www.isHttpError) {
|
||||
@ -17,9 +29,6 @@ public class WebTest : MonoBehaviour {
|
||||
else {
|
||||
// Show results as text
|
||||
Debug.Log(www.downloadHandler.text);
|
||||
|
||||
// Or retrieve results as binary data
|
||||
byte[] results = www.downloadHandler.data;
|
||||
}
|
||||
}
|
||||
}
|
@ -28,8 +28,8 @@ public class board : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
Property cards = new Property("cunt cunt cunt", "test", 200, 400);
|
||||
Debug.Log(cards.ToString());
|
||||
//Property cards = new Property("cunt cunt cunt", "test", 200, 400);
|
||||
//Debug.Log(cards.ToString());
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
@ -45,7 +46,7 @@ public class player : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
Debug.Log(Domain.subDomain("Yes"));
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
@ -1,17 +1,34 @@
|
||||
using System.Collections;
|
||||
using JetBrains.Annotations;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class Property
|
||||
{
|
||||
/*
|
||||
public string title; //The name of the property.
|
||||
public string group; //The colour, station or utility.
|
||||
public int value; //How much it costs to buy.
|
||||
public int houseCost; //How much it costs to buy a house on that property.
|
||||
*/
|
||||
public int property_id;
|
||||
public string property_name;
|
||||
public string property_group;
|
||||
public int? property_value;
|
||||
public int? property_cost;
|
||||
public int? property_rent;
|
||||
public int? property_house1;
|
||||
public int? property_house2;
|
||||
public int? property_house3;
|
||||
public int? property_house4;
|
||||
public int? property_hotel;
|
||||
public int houses = 0; //How many houses it has. (Can have up to 4)
|
||||
public bool hotel = false; //Whether it has a hotel or not. (Can only have 1)
|
||||
public bool mortgage = false; //Whether the property has been mortgaged.
|
||||
|
||||
/*
|
||||
public Property(string name, string importGroup, int importValue, int house) //For houses.
|
||||
{
|
||||
//Initialising all the variables.
|
||||
@ -28,6 +45,7 @@ public class Property
|
||||
group = importGroup;
|
||||
value = importValue;
|
||||
}
|
||||
*/
|
||||
|
||||
public void addHouse() //Used to add a house.
|
||||
{
|
||||
@ -81,24 +99,52 @@ public class Property
|
||||
}
|
||||
|
||||
public string printTitle() {
|
||||
return title;
|
||||
return property_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class properties : MonoBehaviour
|
||||
{
|
||||
|
||||
public List<Property> data;
|
||||
int test;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
StartCoroutine(GetProperties());
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
if (data != null && test == 0)
|
||||
{
|
||||
Debug.Log(data[1].printTitle());
|
||||
test++;
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator GetProperties()
|
||||
{
|
||||
UnityWebRequest www = UnityWebRequest.Get(Domain.subDomain("includes/get-properties.inc.php"));
|
||||
yield return www.SendWebRequest();
|
||||
|
||||
if (www.isNetworkError || www.isHttpError)
|
||||
{
|
||||
Debug.Log(www.error);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show results as text
|
||||
string json = www.downloadHandler.text;
|
||||
data = JsonConvert.DeserializeObject<List<Property>>(json);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void currentProperty(int propertyNum)
|
||||
{
|
||||
Debug.Log(data[propertyNum].printTitle());
|
||||
}
|
||||
|
||||
}
|
||||
|
1064
Assets/menu.unity
Normal file
1064
Assets/menu.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/menu.unity.meta
Normal file
7
Assets/menu.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3fbd493866c5374390f0afa5705629b
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1397,6 +1397,62 @@ Transform:
|
||||
m_Father: {fileID: 758519666}
|
||||
m_RootOrder: 20
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &983314464
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 983314466}
|
||||
- component: {fileID: 983314465}
|
||||
- component: {fileID: 983314467}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &983314465
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 983314464}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71e89e63889ac1c4589d15554266b266, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &983314466
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 983314464}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.51091003, y: 6.1745033, z: -2.8836594}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 8
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &983314467
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 983314464}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ede8e3ed967bcfe42886d342fcf3d755, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &995678214
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1802,7 +1858,7 @@ GameObject:
|
||||
- component: {fileID: 1272828666}
|
||||
- component: {fileID: 1272828670}
|
||||
m_Layer: 0
|
||||
m_Name: Cube
|
||||
m_Name: Player
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
4
Assets/packages.config
Normal file
4
Assets/packages.config
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="12.0.3" />
|
||||
</packages>
|
32
Assets/packages.config.meta
Normal file
32
Assets/packages.config.meta
Normal file
@ -0,0 +1,32 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51c309d9a82549b4a9224e97cc95eb19
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
41
Assets/properties - Copy.csv
Normal file
41
Assets/properties - Copy.csv
Normal file
@ -0,0 +1,41 @@
|
||||
property_name,property_group,property_value,property_cost,property_rent,property_house1,property_house2,property_house3,property_house4,property_hotel
|
||||
Go,go,NULL,NULL,-200,NULL,NULL,NULL,NULL,NULL
|
||||
Old Kent Road,brown,60,50,2,10,30,90,160,250
|
||||
Community Chest,chest,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Whitechapel Road,brown,60,50,4,20,60,180,360,450
|
||||
Income Tax,tax,NULL,NULL,200,NULL,NULL,NULL,NULL,NULL
|
||||
King's Cross Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
The Angel Islington,light blue,100,50,6,30,90,270,400,550
|
||||
Chance,chance,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Euston Road,light blue,100,50,6,30,90,270,400,550
|
||||
Pentonville Road,light blue,120,50,8,40,100,300,450,600
|
||||
Just Visiting,visiting,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Pall Mall,pink,140,100,10,50,150,450,625,750
|
||||
Electric Company,utilities,150,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Whitehall,pink,140,100,10,50,150,450,625,750
|
||||
Northumberland Avenue,pink,160,100,12,60,180,500,700,900
|
||||
Marylebone Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Bow Street,orange,180,100,14,70,200,550,750,950
|
||||
Community Chest,chest,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Marlborough Street,orange,180,100,14,70,200,550,750,950
|
||||
Vine Street,orange,200,100,16,80,220,600,800,1000
|
||||
Free Parking,parking,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Strand,red,220,150,18,90,250,700,875,1050
|
||||
Chance,chance,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Fleet Street,red,220,150,18,90,250,700,875,1050
|
||||
Trafalgar Square,red,240,150,20,100,300,750,925,1100
|
||||
Fenchurch St Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Leicester Square,yellow,260,150,22,110,330,800,975,1150
|
||||
Coventry Street,yellow,260,150,22,110,330,800,975,1150
|
||||
Water Works,utilities,150,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Piccadilly,yellow,280,150,22,120,360,850,1025,1200
|
||||
Go To Jail,gojail,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Regent Street,green,300,200,26,130,390,900,1100,1275
|
||||
Oxford Street,green,300,200,26,130,390,900,1100,1275
|
||||
Community Chest,chest,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Bond Street,green,320,200,28,150,450,1000,1200,1400
|
||||
Liverpool Street Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Chance,chance,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
|
||||
Park Lane,dark blue,350,200,35,175,500,1100,1300,1500
|
||||
Super Tax,tax,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL
|
||||
Mayfair,dark blue,400,200,50,200,600,1400,1700,2000
|
|
7
Assets/properties - Copy.csv.meta
Normal file
7
Assets/properties - Copy.csv.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4fff916e9a9dd1e418e6e843200123a2
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -4,5 +4,11 @@
|
||||
EditorBuildSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Scenes: []
|
||||
m_Scenes:
|
||||
- enabled: 1
|
||||
path: Assets/menu.unity
|
||||
guid: a3fbd493866c5374390f0afa5705629b
|
||||
- enabled: 1
|
||||
path: Assets/monopoly.unity
|
||||
guid: 07d8ea2cf9ad15f41a12bd4ecf2b0f5d
|
||||
m_configObjects: {}
|
||||
|
@ -1,2 +1,2 @@
|
||||
m_EditorVersion: 2019.4.1f1
|
||||
m_EditorVersionWithRevision: 2019.4.1f1 (e6c045e14e4e)
|
||||
m_EditorVersion: 2019.4.3f1
|
||||
m_EditorVersionWithRevision: 2019.4.3f1 (f880dceab6fe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user