TwinObject 내 불필요 코드 삭제

This commit is contained in:
wsh
2025-03-20 10:33:24 +09:00
parent 31fc37b026
commit 94589d4390
44 changed files with 3931 additions and 2803 deletions

11
Assets/AGVMap.cs Normal file
View File

@@ -0,0 +1,11 @@
using System.Collections.Generic;
using UnityEngine;
using XRLib;
namespace XED.VirtualFactory
{
public class AGVMap : MonoBehaviour, ISingle
{
public List<AGVNode> nodes = new();
}
}

2
Assets/AGVMap.cs.meta Normal file
View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2cf7c70fe6f038949a6c633a6e9748bd

52
Assets/AGVMapEditor.cs Normal file
View File

@@ -0,0 +1,52 @@
using System;
using UnityEditor;
using UnityEngine;
using XED.VirtualFactory;
namespace XED.EditorUtil
{
[CustomEditor(typeof(AGVMap))]
public class AGVMapEditor : Editor
{
AGVMap map;
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
map = (AGVMap)target;
if(GUILayout.Button("Load Nodes"))
{
LoadNodes();
}
if(GUILayout.Button("Auto Indexing"))
{
AutoIndexing();
}
}
private void AutoIndexing()
{
for (int i = 0; i < map.nodes.Count; i++)
{
var node = map.nodes[i];
node.entity.id = i.ToString();
map.nodes[i].gameObject.name = node.entity.id;
}
}
void LoadNodes()
{
map.nodes.Clear();
foreach (Transform child in map.transform)
{
AGVNode node = child.GetComponent<AGVNode>();
if (node != null)
{
map.nodes.Add(node);
}
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7af2e4a4e1cbe75479a59bbb023fa8d5

33
Assets/LocationMapper.cs Normal file
View File

@@ -0,0 +1,33 @@
using System.Collections.Generic;
using UnityEngine;
using XRLib;
namespace XED.VirtualFactory
{
public class LocationMapper : MonoBehaviour, ISingle
{
public Dictionary<string, TwinObject> locationMap = new();
public void Regist(TwinObject to)
{
locationMap.Add(to.name, to);
}
public void Unregist(TwinObject to)
{
locationMap.Remove(to.name);
}
public void Unregist(string id)
{
locationMap.Remove(id);
}
public TwinObject Find(string id)
{
if (locationMap.TryGetValue(id, out var to))
return to;
return null;
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 343a6c88bbe45584d989e70715a8228d

View File

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

View File

@@ -0,0 +1,138 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: MAT_UnlitYellow
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SampleGI: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 0.92013705, b: 0, a: 1}
- _Color: {r: 1, g: 0.92013705, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &8014367971321032248
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 9

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d2e7b57f7d85ddd45b008ce0c517c3ff
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -119,6 +119,187 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &109703750
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 109703751}
- component: {fileID: 109703752}
m_Layer: 0
m_Name: AGVMap
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &109703751
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 109703750}
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: 691233196}
- {fileID: 1640835562}
- {fileID: 1222231090}
- {fileID: 1898010821}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &109703752
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 109703750}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2cf7c70fe6f038949a6c633a6e9748bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &125296021
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1580825942296934171, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1580825942296934171, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1580825942296934171, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1580825942296934171, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1580825942296934171, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2068879155472876874, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2068879155472876874, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2068879155472876874, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2068879155472876874, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2068879155472876874, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2859256842406420219, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4736820527522414852, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4736820527522414852, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4736820527522414852, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4736820527522414852, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4736820527522414852, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6604900196319183848, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6604900196319183848, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6604900196319183848, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6604900196319183848, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8888231048162302705, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
propertyPath: m_Name
value: StackerCraneTestKit
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e90993d6f27e3844eaa33168853e6c7d, type: 3}
--- !u!1 &161581743
GameObject:
m_ObjectHideFlags: 0
@@ -130,6 +311,7 @@ GameObject:
- component: {fileID: 161581746}
- component: {fileID: 161581745}
- component: {fileID: 161581744}
- component: {fileID: 161581747}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
@@ -211,6 +393,115 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &161581747
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 161581743}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_RenderShadows: 1
m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:
serializedVersion: 2
m_Bits: 1
m_VolumeTrigger: {fileID: 0}
m_VolumeFrameworkUpdateModeOption: 2
m_RenderPostProcessing: 0
m_Antialiasing: 0
m_AntialiasingQuality: 2
m_StopNaN: 0
m_Dithering: 0
m_ClearDepth: 1
m_AllowXRRendering: 1
m_AllowHDROutput: 1
m_UseScreenCoordOverride: 0
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
m_TaaSettings:
m_Quality: 3
m_FrameInfluence: 0.1
m_JitterScale: 1
m_MipBias: 0
m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0
--- !u!1001 &242396287
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 109703751}
m_Modifications:
- target: {fileID: 2579942234611465176, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_Name
value: Node
objectReference: {fileID: 0}
- target: {fileID: 2978737778036895904, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: d2e7b57f7d85ddd45b008ce0c517c3ff, type: 2}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.x
value: -6
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.y
value: -0.3549566
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.z
value: -2.97
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9141033690985600288, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: nodeClass.linkedNodID.Array.size
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
--- !u!1 &544137892
GameObject:
m_ObjectHideFlags: 0
@@ -221,6 +512,7 @@ GameObject:
m_Component:
- component: {fileID: 544137894}
- component: {fileID: 544137893}
- component: {fileID: 544137895}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
@@ -308,9 +600,399 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!114 &544137895
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 544137892}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 3
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_RenderingLayers: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_ShadowRenderingLayers: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 0
--- !u!1001 &659285625
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 109703751}
m_Modifications:
- target: {fileID: 2579942234611465176, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_Name
value: Node (1)
objectReference: {fileID: 0}
- target: {fileID: 2978737778036895904, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: d2e7b57f7d85ddd45b008ce0c517c3ff, type: 2}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.x
value: -6
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.y
value: -0.3549566
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.z
value: -10.31
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
--- !u!4 &691233196 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
m_PrefabInstance: {fileID: 242396287}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &903010291
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 109703751}
m_Modifications:
- target: {fileID: 2579942234611465176, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_Name
value: Node (2)
objectReference: {fileID: 0}
- target: {fileID: 2978737778036895904, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: d2e7b57f7d85ddd45b008ce0c517c3ff, type: 2}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.x
value: 6.01
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.y
value: -0.3549566
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.z
value: -10.31
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
--- !u!1001 &1094070117
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 109703751}
m_Modifications:
- target: {fileID: 2579942234611465176, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_Name
value: Node (3)
objectReference: {fileID: 0}
- target: {fileID: 2978737778036895904, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: 'm_Materials.Array.data[0]'
value:
objectReference: {fileID: 2100000, guid: d2e7b57f7d85ddd45b008ce0c517c3ff, type: 2}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.x
value: 6.01
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.y
value: -0.3549566
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalPosition.z
value: -3
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
--- !u!1 &1133980571
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1133980572}
- component: {fileID: 1133980573}
m_Layer: 0
m_Name: AGVManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1133980572
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1133980571}
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: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1133980573
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1133980571}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 43c2fa2860dfa344d856558ec881bb8a, type: 3}
m_Name:
m_EditorClassIdentifier:
agvPrefab: {fileID: 0}
agvs: []
fileName: Assets/AGVsLog.csv
--- !u!1 &1193906772
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1193906775}
- component: {fileID: 1193906774}
- component: {fileID: 1193906773}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1193906773
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1193906772}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1193906774
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1193906772}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1193906775
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1193906772}
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: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &1222231090 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
m_PrefabInstance: {fileID: 903010291}
m_PrefabAsset: {fileID: 0}
--- !u!4 &1640835562 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
m_PrefabInstance: {fileID: 659285625}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1858000804
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1858000805}
- component: {fileID: 1858000806}
m_Layer: 0
m_Name: LocationMapper
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1858000805
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1858000804}
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: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1858000806
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1858000804}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 343a6c88bbe45584d989e70715a8228d, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &1898010821 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5408679464857153134, guid: 5b3355ff1ae888e428ebf6ad2853e303, type: 3}
m_PrefabInstance: {fileID: 1094070117}
m_PrefabAsset: {fileID: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 161581746}
- {fileID: 544137894}
- {fileID: 1858000805}
- {fileID: 1193906775}
- {fileID: 125296021}
- {fileID: 1133980572}
- {fileID: 109703751}

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI.Extensions;
namespace XED.Machine
namespace XED.VirtualFactory
{
public enum AGVTaskType
{

View File

@@ -2,10 +2,12 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class AGVNode : MonoBehaviour
{
public AGVNodeEntity entity;
public AGVNodeClass nodeClass;
MaterialPropertyBlock mpb;
List<Renderer> meshRendererList = new List<Renderer>();

View File

@@ -2,7 +2,7 @@ using UnityEngine;
using System.Collections.Generic;
using System;
namespace XED.Machine
namespace XED.VirtualFactory
{
[Serializable]
public enum AGVNodeType

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
namespace XED.VirtualFactory
{
[Serializable]
public class AGVNodeEntity : Entity
{
public List<string> linkedNodes = new();
}
}

View File

@@ -2,7 +2,7 @@ using System.Collections.Generic;
using UnityEngine;
using XRLib;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class AGVNodeLinkManager : MonoBehaviour,ISingle
{

View File

@@ -11,7 +11,7 @@ using XRLib;
using XED.Interfaces;
using XED.Manage;
namespace XED.Machine
namespace XED.VirtualFactory
{
public enum NodeSelectMode
{

View File

@@ -5,7 +5,7 @@ using UnityEngine;
using UnityEngine.UI;
using XRLib.UI;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class AGVNodeModePopup : PanelBase
{

View File

@@ -6,7 +6,7 @@ using UnityEngine.UI;
using XRLib;
using XRLib.UI;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class AGVNodePopup : PanelBase
{

View File

@@ -0,0 +1,14 @@
using UnityEngine;
namespace XED.VirtualFactory
{
public class Entity
{
public string id;
public virtual string ToJson()
{
return JsonUtility.ToJson(this);
}
}
}

View File

@@ -2,7 +2,7 @@ using RTG;
using UnityEngine;
using XRLib;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class NodeGizmoController : MonoBehaviour,ISingle
{

View File

@@ -3,7 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
public enum TargetCase
{

View File

@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
[CreateAssetMenu(fileName = "AGVSpecData", menuName = "AGVSpecData")]
public class AGVSpec : ScriptableObject

View File

@@ -6,7 +6,7 @@ using System.Linq;
using UnityEngine;
using XRLib;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class AGV_Manager : MonoBehaviour,ISingle
{

View File

@@ -3,7 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
public enum BatteryState
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using Unity.Burst.Intrinsics;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class ChargeZone : MonoBehaviour
{

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
namespace XED.Machine
namespace XED.VirtualFactory
{
[RequireComponent(typeof(SphereCollider))]
public class ObstacleSensor : MonoBehaviour

View File

@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
[Serializable]
public class AMR_Class

View File

@@ -1,7 +1,7 @@
using System;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
[Serializable]
public class ASRS_Lifter_Class

View File

@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System;
using UnityEngine;
namespace XED.Machine
namespace XED.VirtualFactory
{
[Serializable]
public class COBOT_Class

View File

@@ -4,7 +4,7 @@ using UnityEngine;
using Newtonsoft.Json;
using System.Reflection;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class DataDistributer : MonoBehaviour
{

View File

@@ -1,7 +1,8 @@
namespace XED.VirtualFactory
{
public class Load : MonoBehaviour
public class Load : TwinObject
{
public string id;
public LoadEntity entity;
}
}

View File

@@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 4355759663402787621}
- component: {fileID: 7434781644678408885}
- component: {fileID: 7772252684465045750}
- component: {fileID: 2713012076675240762}
m_Layer: 0
m_Name: Load
m_TagString: Untagged
@@ -59,6 +60,9 @@ MeshRenderer:
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
@@ -105,3 +109,16 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &2713012076675240762
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2324291936965476306}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cbf5cadd5a55b594bbe325dfebe6e8f1, type: 3}
m_Name:
m_EditorClassIdentifier:
id:

View File

@@ -0,0 +1,7 @@
namespace XED.VirtualFactory
{
public class LoadEntity: Entity
{
public string currentLocation;
}
}

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,7 @@ using XRLib.UI;
using XED.Util;
using XED.Manage;
using XED.Asset;
using XED.Machine;
using XED.VirtualFactory;
using System.Collections.Generic;
using System;

View File

@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace XED.Machine
namespace XED.VirtualFactory
{
public class LinkDataUIManager : MonoBehaviour
{

View File

@@ -16,6 +16,5 @@ namespace XED
this.owner = owner;
modeling = owner.gameObject;
}
}
}

View File

@@ -10,17 +10,10 @@ namespace XED
{
public class TwinObject : MonoBehaviour
{
public HashSet<TwinObject> childs = new HashSet<TwinObject>();
public TwinPhysics physics = new TwinPhysics();
public TwinMetaData metaData = new TwinMetaData();
public AssetLabel assetLabel;
public event Action<TwinObject> onSelectEvent;
public event Action<TwinObject> onDeselectEvent;
public event Action<TwinObject, TwinObject> onTwinConflictEvent;
public event Action<TwinObject, TwinObject> onTwinDeconflictEvent;
[PropertyVisible, Tooltip("ù ¹øÂ° info")]
public bool IsDisplayable;
[PropertyVisible, Tooltip("µÎ ¹øÂ° info")]
@@ -42,7 +35,6 @@ namespace XED
public virtual void Select()
{
onSelectEvent?.Invoke(this);
}
public virtual void SetInteractible(bool value)
@@ -52,52 +44,9 @@ namespace XED
}
public virtual void Deselect()
{
onDeselectEvent?.Invoke(this);
}
public HashSet<TwinObject> crashObjects = new();
public BoxHighLighter boxHighLighter;
private void OnTriggerEnter(Collider other)
{
if (!other.TryGetComponent<TwinObject>(out TwinObject contracter))
return;
crashObjects.Add(contracter);
Conflict(contracter);
}
private void OnTriggerExit(Collider other)
{
if (!other.TryGetComponent<TwinObject>(out TwinObject twin))
return;
CrashObjectRemove(twin);
}
public void CrashBoxHighLightDeActive()
{
foreach(var contracter in crashObjects)
{
contracter.CrashObjectRemove(this);
}
}
public void CrashObjectRemove(TwinObject crashObject)
{
crashObjects.Remove(crashObject);
Deconflict(crashObject);
}
public virtual void Conflict(TwinObject contract)
{
onTwinConflictEvent?.Invoke(this, contract);
}
public virtual void Deconflict(TwinObject contract)
{
onTwinDeconflictEvent?.Invoke(this, contract);
}
public virtual void MaterialChange(Material mat)
{
}
}
}

View File

@@ -3,7 +3,7 @@ using UnityEngine.EventSystems;
using XRLib;
using XRLib.UI;
using XED.UI;
using XED.Machine;
using XED.VirtualFactory;
namespace XED
{

View File

@@ -3,7 +3,7 @@ using UnityEngine.UI;
using System.Collections.Generic;
using XRLib.UI;
using TMPro;
using XED.Machine;
using XED.VirtualFactory;
namespace XED.UI
{

View File

@@ -1,34 +0,0 @@
using UnityEngine;
namespace XED
{
public class Tester : MonoBehaviour
{
HierarchyPanel ph;
HierarchyTree ht;
GameObject renderObjectPrefab;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
ph=FindObjectOfType<HierarchyPanel>();
ht = new HierarchyTree();
ht.onAddEvent += ph.AddItem;
ph.OnItemDropOnItem += ht.Attach;
ht.onDataUpdate += ph.UpdateIndex;
ph.onItemDrop += ht.Dettach;
renderObjectPrefab = Resources.Load<GameObject>("Prefabs/PRF_RenderObject");
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
var obj = Instantiate(renderObjectPrefab);
var to = obj.GetComponent<TwinObject>();
to.name = to.name.Replace("(Clone)", "");
ht.Add(to);
}
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 2f7ab64367eb074498afe02ab1069901