가상공장 환경 구성
This commit is contained in:
31
Assets/VirtualFactoryManager.cs
Normal file
31
Assets/VirtualFactoryManager.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using XED.VirtualFactory;
|
||||
|
||||
namespace XED
|
||||
{
|
||||
public class VirtualFactoryManager : MonoBehaviour
|
||||
{
|
||||
public List<StackerCrane> stackerCranes = new();
|
||||
public AGVManager agvManager;
|
||||
public AGVMap agvMap;
|
||||
public List<Load> loads = new();
|
||||
public override void AfterAwake()
|
||||
{
|
||||
agvMap = FindSingle<AGVMap>();
|
||||
agvManager = FindSingle<AGVManager>();
|
||||
stackerCranes = FindObjectsByType<StackerCrane>(UnityEngine.FindObjectsSortMode.None).ToList();
|
||||
|
||||
}
|
||||
|
||||
void FactoryStatusCheck()
|
||||
{
|
||||
if (loads.Count == 0)
|
||||
{
|
||||
if(agvMap.GetEmptyNode(AGVNodeType.Load, out var node))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user