Adds pause menu and runtime manager
parent
d30ff618b2
commit
076f927eb2
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5538a00eb372b9b4988f472b2d546fa1
|
||||
guid: 54fb3b5383e1ebc46b5ccdf6d7bc69d0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8972d795b9be7454aba89216ddabaeb3
|
||||
guid: 0ec0eeb51a3abd94b82c5873b540b0a3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@ -0,0 +1,23 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.Events;
|
||||
using System.Collections;
|
||||
using SiegeSong;
|
||||
|
||||
[CustomEditor(typeof(TerrainPlateInstantiator))]
|
||||
public class TerrainPlateInstantiatorEditor : Editor
|
||||
{
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
var inspector = new VisualElement();
|
||||
var button = new Button();
|
||||
button.text = "Instantiate!";
|
||||
button.clicked += ((TerrainPlateInstantiator)this.target).InstantiatePlates;
|
||||
inspector.Add(button);
|
||||
|
||||
return inspector;
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5ac32d6274914254cb752473a4924d2b
|
||||
guid: cbc429d381ee98a4399d87becf26f512
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac0e18093de8f5740ad6c0c557f9735f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6cb34e5884519146896d4352b590609
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 6475696996188705980
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1,98 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 607797a60fdea684d869a6e11b7f190d
|
||||
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
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 1
|
||||
seamlessCubemap: 1
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: 0
|
||||
mipBias: 0
|
||||
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: 2
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 100
|
||||
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: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class HuntFood : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03f04e53ab4ee424dbac6e961ddc7556
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MakeTrip : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RestHome : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bace368cd59c95845bb6df8e5b12ea67
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RestTransient : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RetreiveFood : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e51386b2a8e71745b722465c240b3e8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Work : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7746307c975fabe4bb6357c394cee955
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BarKeeper : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81dd180d3fa564b4ea7e27ebb4baf541
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Bard : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ecf12f5bffb08547851c4d56ea60f4b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CityGuard : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a3fd1d7bf435084da84be454ed3ac63
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Cook : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d7620741ce18c9b4083b3e7b235ed1e0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Enchanter : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b22b7e5ed29a0e241ae680691d4e6e09
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Entertainer : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b728c7085da4e4348b2b8d2b835503bc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Farmer : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4d9674306f0e43b429bfc47af52b124e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Fisher : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8089f6de5e922e84090d5cced8bdab28
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Healer : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1ccfab8dbea5a6340a83171fd023e211
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Hunter : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b35c9da9e983ca14584c2b6b4c428223
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class InnKeeper : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 161478aba5b63b1409d8a9d82ad14016
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Miner : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f49a26a1b7847b4da83fa3c65330086
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class PrivateGuard : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 468bcab5ab13d194795ca165d1d881cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ShopKeeper : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 285816949ca88c04c872083e3b262af6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Smith : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee69c11f4e74a5a4fb8cb718382ed360
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,18 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Tailor : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9616e74a439f7934c9d1386d8a166a11
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,142 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using SiegeSong;
|
||||
using Gaia;
|
||||
|
||||
namespace SiegeSong
|
||||
{
|
||||
public class RuntimeManager : MonoBehaviour
|
||||
{
|
||||
public int MinuteOfHour
|
||||
{
|
||||
get
|
||||
{
|
||||
var timeOfDayRawValue = GaiaGlobal.GetTimeOfDayMainValue();
|
||||
var totalMinute = (int)(timeOfDayRawValue * minutesInDay);
|
||||
var hour = totalMinute / minutesInHour;
|
||||
var minute = totalMinute - (hour * minutesInHour);
|
||||
return minute;
|
||||
}
|
||||
}
|
||||
|
||||
public int HourOfDay
|
||||
{
|
||||
get
|
||||
{
|
||||
var timeOfDayRawValue = GaiaGlobal.GetTimeOfDayMainValue();
|
||||
var totalMinute = (int)(timeOfDayRawValue * minutesInDay);
|
||||
var hour = totalMinute / minutesInHour;
|
||||
return hour;
|
||||
}
|
||||
}
|
||||
|
||||
public int DayOfYear;
|
||||
public int DayOfMonth;
|
||||
public int DayOfWeek;
|
||||
public int WeekOfMonth;
|
||||
public int MonthOfYear;
|
||||
public int Year;
|
||||
|
||||
public GameObject PlayerInstance;
|
||||
public GaiaScenePlayer GaiaPlayer;
|
||||
public GameObject FogDataObject;
|
||||
public FogVolumePriority FogPriority;
|
||||
public FogVolume FogVolume;
|
||||
public GaiaGlobal GaiaGlobalSettings;
|
||||
public Suimono.Core.SuimonoModule WaterModule;
|
||||
|
||||
private int minutesInHour = 60;
|
||||
private int minutesInDay = 1440;
|
||||
private int daysInYear = 336;
|
||||
private int monthsInYear = 12;
|
||||
private int daysInWeek = 7;
|
||||
|
||||
private int inLoreBaseYear = 1131;
|
||||
|
||||
private int rawMinutes;
|
||||
private string friendlyTime;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
var newFriendlyTime = "";
|
||||
var newRawMinutes = (int)(GaiaGlobal.GetTimeOfDayMainValue() * minutesInDay);
|
||||
|
||||
if (HourOfDay < 12)
|
||||
newFriendlyTime = $"{(HourOfDay.ToString().Length == 2 ? HourOfDay : "0" + HourOfDay)}:{(MinuteOfHour.ToString().Length == 2 ? MinuteOfHour : "0" + MinuteOfHour)} AM";
|
||||
else
|
||||
newFriendlyTime = $"{((HourOfDay - 12).ToString().Length == 2 ? (HourOfDay - 12) : "0" + (HourOfDay - 12))}:{(MinuteOfHour.ToString().Length == 2 ? MinuteOfHour : "0" + MinuteOfHour)} PM";
|
||||
|
||||
if (friendlyTime != newFriendlyTime)
|
||||
{
|
||||
Debug.Log(newFriendlyTime);
|
||||
Debug.Log($"Day - {DayOfYear} / Month - {MonthOfYear + 1} / Week of Month - {WeekOfMonth + 1} / Day of Month - {DayOfMonth}");
|
||||
}
|
||||
friendlyTime = newFriendlyTime;
|
||||
|
||||
if (rawMinutes > newRawMinutes)
|
||||
{
|
||||
if (DayOfYear == daysInYear)
|
||||
{
|
||||
Year++;
|
||||
DayOfYear = 0;
|
||||
var dayNumber = (DayOfMonth + 1).ToString();
|
||||
var monthNumber = (MonthOfYear + 1).ToString();
|
||||
PlayerInstance.GetComponentInChildren<NotificationManager>().Notify($"{(dayNumber.Length == 2 ? dayNumber : "0" + dayNumber)}/{(monthNumber.Length == 2 ? monthNumber : "0" + monthNumber)}/{Year + inLoreBaseYear} - The first day of Year {Year + 1} has begun.");
|
||||
}
|
||||
else
|
||||
{
|
||||
DayOfYear++;
|
||||
var dayNumber = (DayOfMonth + 1).ToString();
|
||||
var monthNumber = (MonthOfYear + 1).ToString();
|
||||
PlayerInstance.GetComponentInChildren<NotificationManager>().Notify($"{(dayNumber.Length == 2 ? dayNumber : "0" + dayNumber)}/{(monthNumber.Length == 2 ? monthNumber : "0" + monthNumber)}/{Year + inLoreBaseYear} - A new day has begun.");
|
||||
}
|
||||
MonthOfYear = DayOfYear / monthsInYear;
|
||||
DayOfMonth = DayOfYear % monthsInYear;
|
||||
WeekOfMonth = (DayOfYear % monthsInYear) / daysInWeek;
|
||||
DayOfWeek = (DayOfYear % monthsInYear) % daysInWeek;
|
||||
}
|
||||
rawMinutes = newRawMinutes;
|
||||
}
|
||||
|
||||
public void PopulateReferences()
|
||||
{
|
||||
if (FogDataObject != null)
|
||||
{
|
||||
FogDataObject.GetComponent<FogVolumeData>().GameCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
|
||||
if (FogPriority != null)
|
||||
{
|
||||
FogPriority.GameCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
|
||||
if (FogVolume != null)
|
||||
{
|
||||
//FogVolume.FogVolumeData = FogDataObject;
|
||||
FogVolume.AssignCamera();
|
||||
}
|
||||
|
||||
if (GaiaPlayer != null)
|
||||
{
|
||||
GaiaPlayer.transform.parent = PlayerInstance.transform;
|
||||
GaiaPlayer.transform.position = Vector3.zero;
|
||||
}
|
||||
|
||||
if (WaterModule != null)
|
||||
{
|
||||
WaterModule.setTrack = PlayerInstance.transform;
|
||||
WaterModule.setCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
WaterModule.mainCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
WaterModule.manualCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
}
|
||||
|
||||
GaiaGlobalSettings.m_mainCamera = PlayerInstance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using SiegeSong;
|
||||
|
||||
namespace SiegeSong
|
||||
{
|
||||
public class GlobalPauseMenu : MonoBehaviour
|
||||
{
|
||||
public GameObject PauseMenu;
|
||||
public GameObject OptionsContainer;
|
||||
|
||||
private string pauseGamepadInput = "Start";
|
||||
private string menuVerticalGamepadInput = "D-Pad Vertical";
|
||||
private string menuHorizontalGamepadInput = "D-Pad Horizontal";
|
||||
private string menuConfirmGamepadInput = "A";
|
||||
private string menuRejectGamepadInput = "B";
|
||||
|
||||
private bool oldConfirmState;
|
||||
private bool oldRejectState;
|
||||
private float oldVerticalState;
|
||||
private float oldHorizontalState;
|
||||
|
||||
private bool open;
|
||||
private int selectedIndex;
|
||||
|
||||
private Color activeColor = Color.white;
|
||||
private Color inactiveColor = Color.grey;
|
||||
|
||||
private int activeFontSize;
|
||||
private int inactiveFontSize;
|
||||
|
||||
private bool loadingSubmenuOpen;
|
||||
private bool savingSubmenuOpen;
|
||||
private bool settingsSubmenuOpen;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!open && Input.GetButton(pauseGamepadInput))
|
||||
{
|
||||
open = true;
|
||||
Time.timeScale = 0.0f;
|
||||
PauseMenu.active = true;
|
||||
}
|
||||
|
||||
if (open)
|
||||
{
|
||||
for (var i = 0; i < OptionsContainer.transform.childCount; i++)
|
||||
{
|
||||
var childObject = OptionsContainer.transform.GetChild(i);
|
||||
childObject.GetComponent<Text>().text = selectedIndex == i ? $"- {childObject.name} -" : childObject.name;
|
||||
childObject.GetComponent<Text>().color = selectedIndex == i ? activeColor : inactiveColor;
|
||||
childObject.GetComponent<Text>().fontSize = selectedIndex == i ? activeFontSize : inactiveFontSize;
|
||||
}
|
||||
var newConfirmState = Input.GetButton(menuConfirmGamepadInput);
|
||||
var newRejectState = Input.GetButton(menuRejectGamepadInput);
|
||||
var newMenuVerticalState = Input.GetAxis(menuVerticalGamepadInput);
|
||||
var newMenuHorizontalState = Input.GetAxis(menuHorizontalGamepadInput);
|
||||
if (oldVerticalState == 0 && newMenuVerticalState < 0)
|
||||
{
|
||||
if (selectedIndex == OptionsContainer.transform.childCount - 1)
|
||||
selectedIndex = 0;
|
||||
else
|
||||
selectedIndex++;
|
||||
}
|
||||
if (oldVerticalState == 0 && newMenuVerticalState > 0)
|
||||
{
|
||||
if (selectedIndex == 0)
|
||||
selectedIndex = OptionsContainer.transform.childCount - 1;
|
||||
else
|
||||
selectedIndex--;
|
||||
}
|
||||
if (!loadingSubmenuOpen && !savingSubmenuOpen && !settingsSubmenuOpen)
|
||||
{
|
||||
if ((!oldConfirmState && newConfirmState) || (oldHorizontalState == 0 && newMenuHorizontalState > 0))
|
||||
{
|
||||
switch (selectedIndex)
|
||||
{
|
||||
case 0:
|
||||
ResumeGame();
|
||||
break;
|
||||
case 1:
|
||||
OpenLoadingSubmenu();
|
||||
break;
|
||||
case 2:
|
||||
OpenSavingSubmenu();
|
||||
break;
|
||||
case 3:
|
||||
OpenSettingsSubmenu();
|
||||
break;
|
||||
case 4:
|
||||
ExitGame();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
oldConfirmState = newConfirmState;
|
||||
oldRejectState = newRejectState;
|
||||
oldHorizontalState = newMenuHorizontalState;
|
||||
oldVerticalState = newMenuVerticalState;
|
||||
}
|
||||
}
|
||||
|
||||
void ResumeGame()
|
||||
{
|
||||
open = false;
|
||||
PauseMenu.active = false;
|
||||
Time.timeScale = 1.0f;
|
||||
}
|
||||
|
||||
void OpenLoadingSubmenu()
|
||||
{
|
||||
loadingSubmenuOpen = true;
|
||||
}
|
||||
|
||||
void OpenSavingSubmenu()
|
||||
{
|
||||
savingSubmenuOpen = true;
|
||||
}
|
||||
|
||||
void OpenSettingsSubmenu()
|
||||
{
|
||||
settingsSubmenuOpen = true;
|
||||
}
|
||||
|
||||
void ExitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 96b639045b625ca4dba86f9a047a25bd
|
||||
guid: 77cf0439936b2fe47b16decc5c93d5da
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@ -1,85 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using SiegeSong;
|
||||
using Gaia;
|
||||
|
||||
namespace SiegeSong
|
||||
{
|
||||
public class PlayerReferencePopulator : MonoBehaviour
|
||||
{
|
||||
public GameObject Instance;
|
||||
public GaiaScenePlayer GaiaPlayer;
|
||||
public GameObject FogDataObject;
|
||||
public FogVolumePriority FogPriority;
|
||||
public FogVolume FogVolume;
|
||||
public GaiaGlobal GaiaGlobalSettings;
|
||||
public Suimono.Core.SuimonoModule WaterModule;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void PopulateReferences()
|
||||
{
|
||||
if (FogDataObject != null)
|
||||
{
|
||||
FogDataObject.GetComponent<FogVolumeData>().GameCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
|
||||
if (FogPriority != null)
|
||||
{
|
||||
FogPriority.GameCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
|
||||
if (FogVolume != null)
|
||||
{
|
||||
//FogVolume.FogVolumeData = FogDataObject;
|
||||
FogVolume.AssignCamera();
|
||||
}
|
||||
|
||||
if (GaiaPlayer != null)
|
||||
{
|
||||
GaiaPlayer.transform.parent = Instance.transform;
|
||||
GaiaPlayer.transform.position = Vector3.zero;
|
||||
}
|
||||
|
||||
if (WaterModule != null)
|
||||
{
|
||||
WaterModule.setTrack = Instance.transform;
|
||||
WaterModule.setCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
WaterModule.mainCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
WaterModule.manualCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.transform.GetChild(0);
|
||||
}
|
||||
|
||||
GaiaGlobalSettings.m_mainCamera = Instance.GetComponentInChildren<PlayerCameraManager>().ActiveCamera.GetComponentInChildren<Camera>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//namespace SiegeSong
|
||||
//{
|
||||
// public class ZoneLoader : MonoBehaviour
|
||||
// {
|
||||
// public ActorLoader[] ActorLoaders;
|
||||
// public ObjectLoader[] ObjectLoaders;
|
||||
// public BuildingLoader[] BuildingLoaders;
|
||||
|
||||
// void Start()
|
||||
// {
|
||||
|
||||
// }
|
||||
|
||||
// void Update()
|
||||
// {
|
||||
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue