path manager update
This commit is contained in:
@@ -49,6 +49,9 @@ MonoBehaviour:
|
||||
modelType: Sink
|
||||
modelID:
|
||||
nodeID:
|
||||
eventShipItem: items_shipped_successfully
|
||||
eventRemoveItem: item_removed_from_queue
|
||||
totalShipped: 0
|
||||
--- !u!1001 &7399670728975469901
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -6874,6 +6874,30 @@ PrefabInstance:
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2307873482672832875, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2307873482672832875, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3164975517789104253, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3164975517789104253, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3164975517789104253, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3164975517789104253, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3512657831314021627, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
@@ -6894,6 +6918,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7770922069808366893, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7770922069808366893, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7884294797245305317, guid: bc16ce627450b4a46a0bfdbe5fd69f94, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ObjectLibrary
|
||||
|
||||
@@ -7,6 +7,8 @@ public class ClickHandler : MonoBehaviour
|
||||
public ModelObjectStatus objStatus;
|
||||
public float clickDurationThreshold = 0.2f;
|
||||
public float clickDistanceThreshold = 0.5f;
|
||||
public float doubleClickThreshold = 0.2f;
|
||||
|
||||
float clickStart = 0;
|
||||
Vector3 clickStartPos;
|
||||
public enum InputState
|
||||
@@ -26,6 +28,10 @@ public class ClickHandler : MonoBehaviour
|
||||
{
|
||||
clickStart = Time.time;
|
||||
clickStartPos = Input.mousePosition;
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
|
||||
}
|
||||
else if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
using System.Collections.Generic;
|
||||
public class PathManager : UnitySingleton<PathManager>
|
||||
{
|
||||
List<SimulationPathNode> nodes = new List<SimulationPathNode>();
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
@@ -13,10 +14,5 @@ public class PathManager : UnitySingleton<PathManager>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
public class SimulationPath
|
||||
{
|
||||
public SimulationPath prev;
|
||||
public SimulationPath next;
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ using System.Collections;
|
||||
public class SimulationModelSink : SimulationModel
|
||||
{
|
||||
public string eventShipItem = "items_shipped_successfully";
|
||||
public string eventRemoveItem = "product_defective";
|
||||
public string eventRemoveItem = "item_removed_from_queue";
|
||||
public int totalShipped = 0;
|
||||
ConcurrentQueue<JObject> dataQueue;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
|
||||
18
Assets/Scripts/SimulationPathNode.cs
Normal file
18
Assets/Scripts/SimulationPathNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class SimulationPathNode : MonoBehaviour
|
||||
{
|
||||
public SimulationPathNode prevNode;
|
||||
public SimulationPathNode nextNode;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/SimulationPathNode.cs.meta
Normal file
2
Assets/Scripts/SimulationPathNode.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 057aed38343026f42baf4fb2b77a7597
|
||||
Reference in New Issue
Block a user