parent
f6a463c4df
commit
cbdfa04bff
8
BlueWater/Assets/01.Scenes/02.Tycoon.meta
Normal file
8
BlueWater/Assets/01.Scenes/02.Tycoon.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb726f84d04154397bcaaf57c348652a
|
||||
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: 7f435cceb6d614cf0b149079d184c785
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 23800000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
72
BlueWater/Assets/02.Scripts/Npc/Guest/FindTableState.cs
Normal file
72
BlueWater/Assets/02.Scripts/Npc/Guest/FindTableState.cs
Normal file
@ -0,0 +1,72 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
namespace BlueWaterProject
|
||||
{
|
||||
public class FindTableState : INpcState
|
||||
{
|
||||
private NavMeshAgent agent;
|
||||
private TycoonMapInfo tycoonMapInfo;
|
||||
private Table[] tables;
|
||||
private bool doSeat;
|
||||
|
||||
// Currently assigned seat
|
||||
private Seat assignedSeat;
|
||||
|
||||
public FindTableState(NavMeshAgent agent, TycoonMapInfo tycoonMapInfo)
|
||||
{
|
||||
this.agent = agent;
|
||||
this.tycoonMapInfo = tycoonMapInfo;
|
||||
|
||||
tables = tycoonMapInfo.Tables.GetComponentsInChildren<Table>();
|
||||
}
|
||||
|
||||
public void OnEnter(NpcStateMachine npcStateMachine)
|
||||
{
|
||||
CheckAndAssignSeat();
|
||||
}
|
||||
|
||||
public void OnUpdate(NpcStateMachine npcStateMachine)
|
||||
{
|
||||
var currentTables = tycoonMapInfo.Tables.GetComponentsInChildren<Table>();
|
||||
|
||||
if (currentTables.Length == tables.Length) return;
|
||||
tables = currentTables;
|
||||
CheckAndAssignSeat();
|
||||
}
|
||||
|
||||
private void CheckAndAssignSeat()
|
||||
{
|
||||
if (!doSeat)
|
||||
{
|
||||
foreach(var table in tables)
|
||||
{
|
||||
foreach(var seat in table.SeatPoints)
|
||||
{
|
||||
if (seat.IsUsing) continue;
|
||||
agent.SetDestination(seat.transform.position);
|
||||
//Relinquish the previously assigned seat
|
||||
if (assignedSeat != null)
|
||||
{
|
||||
assignedSeat.IsUsing = false;
|
||||
assignedSeat.IsDirty = true;
|
||||
}
|
||||
//Assign the new seat
|
||||
assignedSeat = seat;
|
||||
assignedSeat.IsUsing = true;
|
||||
doSeat = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Debug.Log("All tables are occupied. No place to sit");
|
||||
}
|
||||
|
||||
public void OnExit(NpcStateMachine npcStateMachine)
|
||||
{
|
||||
if (assignedSeat == null) return;
|
||||
assignedSeat.IsUsing = false;
|
||||
assignedSeat.IsDirty = true;
|
||||
}
|
||||
}
|
||||
}
|
11
BlueWater/Assets/02.Scripts/Npc/Guest/FindTableState.cs.meta
Normal file
11
BlueWater/Assets/02.Scripts/Npc/Guest/FindTableState.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3eb3397e9a2042a792a1ef1538cf98a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,7 +0,0 @@
|
||||
namespace BlueWaterProject.Guest
|
||||
{
|
||||
public class NormalGuestState
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3311bc1f50fd48908da1479f814bfd12
|
||||
timeCreated: 1703259530
|
11
BlueWater/Assets/02.Scripts/Tycoon/Seat.cs
Normal file
11
BlueWater/Assets/02.Scripts/Tycoon/Seat.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWaterProject
|
||||
{
|
||||
public class Seat : MonoBehaviour
|
||||
{
|
||||
public Transform Transform { get; }
|
||||
public bool IsUsing { get; set; } = false;
|
||||
public bool IsDirty { get; set; } = false;
|
||||
}
|
||||
}
|
3
BlueWater/Assets/02.Scripts/Tycoon/Seat.cs.meta
Normal file
3
BlueWater/Assets/02.Scripts/Tycoon/Seat.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c39eec9fd904fc2b6d14b1bf3fdb98a
|
||||
timeCreated: 1703736153
|
16
BlueWater/Assets/02.Scripts/Tycoon/Table.cs
Normal file
16
BlueWater/Assets/02.Scripts/Tycoon/Table.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace BlueWaterProject
|
||||
{
|
||||
public class Table : MonoBehaviour
|
||||
{
|
||||
public Seat[] SeatPoints;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
SeatPoints = transform.Find("SeatPoints").GetComponentsInChildren<Seat>();
|
||||
}
|
||||
}
|
||||
}
|
3
BlueWater/Assets/02.Scripts/Tycoon/Table.cs.meta
Normal file
3
BlueWater/Assets/02.Scripts/Tycoon/Table.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e13844f714343ca86ef3c1926384cee
|
||||
timeCreated: 1703730895
|
9
BlueWater/Assets/02.Scripts/Tycoon/TycoonMapInfo.cs
Normal file
9
BlueWater/Assets/02.Scripts/Tycoon/TycoonMapInfo.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWaterProject
|
||||
{
|
||||
public class TycoonMapInfo : MonoBehaviour
|
||||
{
|
||||
[field: SerializeField] public Transform Tables { get; set; }
|
||||
}
|
||||
}
|
3
BlueWater/Assets/02.Scripts/Tycoon/TycoonMapInfo.cs.meta
Normal file
3
BlueWater/Assets/02.Scripts/Tycoon/TycoonMapInfo.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1d406ab800149beb9baa1f305b51e38
|
||||
timeCreated: 1703729887
|
31
BlueWater/Assets/02.Scripts/Tycoon/TycoonNpc.cs
Normal file
31
BlueWater/Assets/02.Scripts/Tycoon/TycoonNpc.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace BlueWaterProject
|
||||
{
|
||||
public class TycoonNpc : MonoBehaviour
|
||||
{
|
||||
private NpcStateMachine stateMachine;
|
||||
private NavMeshAgent agent;
|
||||
private Transform visaualLook;
|
||||
|
||||
private TycoonMapInfo mapInfo;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
agent = GetComponent<NavMeshAgent>();
|
||||
agent.updateRotation = false;
|
||||
mapInfo = GameObject.Find("MapInfo").GetComponent<TycoonMapInfo>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
stateMachine = gameObject.AddComponent<NpcStateMachine>();
|
||||
|
||||
var findTableState = new FindTableState(agent,mapInfo);
|
||||
stateMachine.ChangeState(findTableState);
|
||||
}
|
||||
}
|
||||
}
|
3
BlueWater/Assets/02.Scripts/Tycoon/TycoonNpc.cs.meta
Normal file
3
BlueWater/Assets/02.Scripts/Tycoon/TycoonNpc.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46f3d09951f1425997147f07f64a748f
|
||||
timeCreated: 1703732599
|
@ -76,17 +76,17 @@ namespace BlueWaterProject
|
||||
|
||||
private void OnBuildMode(InputValue value)
|
||||
{
|
||||
var buildListPopup = UiManager.Inst.TycoonUi.BuildListPopup;
|
||||
var buildListView = UiManager.Inst.TycoonUi.BuildListPopup;
|
||||
|
||||
if (buildListPopup.isVisible || GameManager.Inst.IsBuildMode)
|
||||
if (buildListView.isVisible || GameManager.Inst.IsBuildMode)
|
||||
{
|
||||
buildListPopup.Hide();
|
||||
buildListView.Hide();
|
||||
EasyGridBuilderPro.Instance.SetGridModeBuilding();
|
||||
GameManager.Inst.IsBuildMode = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
buildListPopup.Show();
|
||||
buildListView.Show();
|
||||
EasyGridBuilderPro.Instance.SetGridModeBuilding();
|
||||
GameManager.Inst.IsBuildMode = true;
|
||||
}
|
||||
|
BIN
BlueWater/Assets/03.Images/Tycoon/restaurant_tile01.png
Normal file
BIN
BlueWater/Assets/03.Images/Tycoon/restaurant_tile01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 MiB |
112
BlueWater/Assets/03.Images/Tycoon/restaurant_tile01.png.meta
Normal file
112
BlueWater/Assets/03.Images/Tycoon/restaurant_tile01.png.meta
Normal file
@ -0,0 +1,112 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1fdf0739d37a547e3a218708301ba5bb
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
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
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 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
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 10
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -27,7 +27,7 @@ Material:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: d08c8cd3647c646568aa26bf0a971b5b, type: 3}
|
||||
m_Texture: {fileID: 2800000, guid: 1fdf0739d37a547e3a218708301ba5bb, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
@ -63,7 +63,7 @@ Material:
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: d08c8cd3647c646568aa26bf0a971b5b, type: 3}
|
||||
m_Texture: {fileID: 2800000, guid: 1fdf0739d37a547e3a218708301ba5bb, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
|
8
BlueWater/Assets/05.Prefabs/Ai/Npc.meta
Normal file
8
BlueWater/Assets/05.Prefabs/Ai/Npc.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7205df04fe28f4755b5863149653f551
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
4299
BlueWater/Assets/05.Prefabs/Ai/Npc/TycconNpc.prefab
Normal file
4299
BlueWater/Assets/05.Prefabs/Ai/Npc/TycconNpc.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
BlueWater/Assets/05.Prefabs/Ai/Npc/TycconNpc.prefab.meta
Normal file
7
BlueWater/Assets/05.Prefabs/Ai/Npc/TycconNpc.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e6031a186487438097c5f82f8803b6c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -382,7 +382,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.70710576, y: -0, z: -0, w: 0.70710784}
|
||||
m_LocalPosition: {x: -1.5, y: -1.5, z: -0.96000004}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 1.118331}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 0.32817388}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 718122768240141636}
|
||||
@ -416,7 +416,7 @@ Transform:
|
||||
m_GameObject: {fileID: 1629970853564631595}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: -0.122, z: -0.084}
|
||||
m_LocalPosition: {x: 0, y: -0.54, z: -0.08}
|
||||
m_LocalScale: {x: 1.5, y: 1.5, z: 1.5}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
@ -426,6 +426,41 @@ Transform:
|
||||
- {fileID: 7616018337310908335}
|
||||
m_Father: {fileID: 5356665804352008552}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1735088473143906017
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3272174158689581016}
|
||||
m_Layer: 21
|
||||
m_Name: SeatPoints
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3272174158689581016
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1735088473143906017}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3512534252336170061}
|
||||
- {fileID: 7119052291838343312}
|
||||
- {fileID: 5847555486281922076}
|
||||
- {fileID: 4501284059398328132}
|
||||
m_Father: {fileID: 2913372423088364878}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1750310004106530534
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -556,7 +591,7 @@ Transform:
|
||||
m_GameObject: {fileID: 1774146053524999301}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: 1, z: -0, w: 0.00000058114523}
|
||||
m_LocalPosition: {x: -0.0000001554467, y: -0.12199998, z: -0.02700013}
|
||||
m_LocalPosition: {x: -0.0000001554467, y: -0.54, z: -0.023000129}
|
||||
m_LocalScale: {x: 1.5, y: 1.5, z: 1.5}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
@ -671,6 +706,50 @@ BoxCollider:
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.83489615, y: 0.000000005386312, z: 4.641765}
|
||||
m_Center: {x: 7.1078075e-18, y: 0.000007629396, z: -0.00000023841858}
|
||||
--- !u!1 &2169885226130513319
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3512534252336170061}
|
||||
- component: {fileID: 8433742606505146628}
|
||||
m_Layer: 21
|
||||
m_Name: Point
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3512534252336170061
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2169885226130513319}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -0.46, y: 1.23, z: -1.12}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3272174158689581016}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &8433742606505146628
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2169885226130513319}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c39eec9fd904fc2b6d14b1bf3fdb98a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &2589209679107664015
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -909,7 +988,7 @@ Transform:
|
||||
m_GameObject: {fileID: 3440550844305179622}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.7071068, y: 0.7071068, z: -0.0000758469, w: 0.0000739172}
|
||||
m_LocalPosition: {x: 2.615, y: -0.218, z: 0.021}
|
||||
m_LocalPosition: {x: 2.615, y: -1.0540001, z: 0.029000001}
|
||||
m_LocalScale: {x: 0.53, y: 0.53, z: 0.53}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
@ -986,6 +1065,50 @@ BoxCollider:
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.83, y: 0.0000023786608, z: 4.713752}
|
||||
m_Center: {x: 1.3583216e-19, y: 1.1561977e-21, z: 0.000000003725291}
|
||||
--- !u!1 &3586230886265091355
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5847555486281922076}
|
||||
- component: {fileID: 7696739844738026651}
|
||||
m_Layer: 21
|
||||
m_Name: Point
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5847555486281922076
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3586230886265091355}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -0.46, y: 1.23, z: 1.016}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3272174158689581016}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &7696739844738026651
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3586230886265091355}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c39eec9fd904fc2b6d14b1bf3fdb98a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &3830900043325165058
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1091,6 +1214,50 @@ BoxCollider:
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.8662859, y: 0.0000023786608, z: 4.733264}
|
||||
m_Center: {x: 0.0000001192093, y: -0.000003814698, z: -0.00000023841858}
|
||||
--- !u!1 &4297658176128419477
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4501284059398328132}
|
||||
- component: {fileID: 3233840144207025116}
|
||||
m_Layer: 21
|
||||
m_Name: Point
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4501284059398328132
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4297658176128419477}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.492, y: 1.23, z: 1.016}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3272174158689581016}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &3233840144207025116
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4297658176128419477}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c39eec9fd904fc2b6d14b1bf3fdb98a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &4890457581845884386
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1222,7 +1389,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.70710576, y: -0, z: -0, w: 0.70710784}
|
||||
m_LocalPosition: {x: 1.5, y: -1.5, z: -0.96}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 1.118331}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 0.32817388}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8365413248823196972}
|
||||
@ -1681,7 +1848,7 @@ Transform:
|
||||
m_GameObject: {fileID: 6124452615417502625}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.00000070780516, y: 0.70710677, z: -0.7071068, w: 0.0000005662441}
|
||||
m_LocalPosition: {x: -0.017, y: -0.226, z: -1.205}
|
||||
m_LocalPosition: {x: -0.017, y: -1.062, z: -1.197}
|
||||
m_LocalScale: {x: 0.53, y: 0.53, z: 0.53}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
@ -2102,7 +2269,7 @@ Transform:
|
||||
m_GameObject: {fileID: 6693798635546969418}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.0000003576278, y: 1, z: 0.00000010791614, w: -0.00000039159556}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0.02}
|
||||
m_LocalPosition: {x: 0, y: -0.8360001, z: 0.028}
|
||||
m_LocalScale: {x: 0.53, y: 0.53, z: 0.53}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
@ -2205,7 +2372,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.70710576, y: -0, z: -0, w: 0.70710784}
|
||||
m_LocalPosition: {x: 1.5, y: -1.5, z: 0.64}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 1.118331}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 0.32817388}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3411389841244958530}
|
||||
@ -2873,7 +3040,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.70710576, y: -0, z: -0, w: 0.70710784}
|
||||
m_LocalPosition: {x: -1.5, y: -1.5, z: 0.64}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 1.118331}
|
||||
m_LocalScale: {x: 0.06413292, y: 0.82617813, z: 0.32817388}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3471635964662021302}
|
||||
@ -3093,6 +3260,50 @@ MeshCollider:
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 30
|
||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!1 &8896182282073239041
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7119052291838343312}
|
||||
- component: {fileID: 7308199458147874412}
|
||||
m_Layer: 21
|
||||
m_Name: Point
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7119052291838343312
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8896182282073239041}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.492, y: 1.23, z: -1.12}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3272174158689581016}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &7308199458147874412
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8896182282073239041}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c39eec9fd904fc2b6d14b1bf3fdb98a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &9029941878878784547
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -3121,7 +3332,7 @@ Transform:
|
||||
m_GameObject: {fileID: 9029941878878784547}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.70710677, y: 0.0000007227062, z: -0.0000005544327, w: -0.7071069}
|
||||
m_LocalPosition: {x: -0.02, y: -0.23, z: 1.267}
|
||||
m_LocalPosition: {x: -0.02, y: -1.0660001, z: 1.275}
|
||||
m_LocalScale: {x: 0.53, y: 0.53, z: 0.53}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
@ -3226,7 +3437,7 @@ Transform:
|
||||
m_GameObject: {fileID: 9148396741777775353}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.00007400662, y: 0.0000756979, z: -0.7071069, w: -0.70710677}
|
||||
m_LocalPosition: {x: -2.63, y: -0.218, z: 0.052}
|
||||
m_LocalPosition: {x: -2.63, y: -1.0540001, z: 0.060000002}
|
||||
m_LocalScale: {x: 0.53, y: 0.53, z: 0.53}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
@ -3314,14 +3525,44 @@ PrefabInstance:
|
||||
- target: {fileID: 2061692202436134468, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.934
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4026609877323721986, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5680503881558313543, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: objectScale.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5680503881558313543, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: objectScale.z
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5680503881558313543, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: buildableGridObjectTypeSO
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: 153a250c89e8b4409829a5aa92252ef9,
|
||||
type: 2}
|
||||
- target: {fileID: 7137341952126152044, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_Size.x
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7137341952126152044, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_Size.y
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7137341952126152044, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_Size.z
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7667327646639859884, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
@ -3380,6 +3621,10 @@ PrefabInstance:
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 9125499842164812386, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 3272174158689581016}
|
||||
- targetCorrespondingSourceObject: {fileID: 2061692202436134468, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
@ -3392,8 +3637,37 @@ PrefabInstance:
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 224293111882912753}
|
||||
m_AddedComponents: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 7667327646639859884, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 2729706869944034771}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 6b3d152c885564ab0ac2229ff08dc50f, type: 3}
|
||||
--- !u!4 &2913372423088364878 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 9125499842164812386, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6253856153646937900}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &4372424413401063296 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7667327646639859884, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6253856153646937900}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &2729706869944034771
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4372424413401063296}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6e13844f714343ca86ef3c1926384cee, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
SeatPoints: []
|
||||
--- !u!4 &5356665804352008552 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 2061692202436134468, guid: 6b3d152c885564ab0ac2229ff08dc50f,
|
||||
|
@ -257,6 +257,10 @@ namespace SoulGames.EasyGridBuilderPro
|
||||
buildableGridObject.HandleVisualCanvasGrid(system);
|
||||
|
||||
buildableGridObject.Setup();
|
||||
|
||||
var tableTransform = GameObject.Find("Tables").transform;
|
||||
placedObjectTransform.SetParent(tableTransform);
|
||||
|
||||
return buildableGridObject;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user