ReelsMoving

This commit is contained in:
FreshMix committed 2025-10-08 17:49:35 +03:00
1 parent eb535311d7
commit 3a94e032c9
565 files changed
+68433 -13960

No files matched your search

+30 -1
View File
@@ -44,8 +44,13 @@ public class XYCoordinatesMovementScript : MonoBehaviour
[SerializeField]
List<bool> InsertedMaterials;
[SerializeField]
List<bool> InsertedReels;
bool ReadyToWork = false;
bool ReelsReady = false;
// Íîìåð îáúåêòà â CurrentProgram, ê êîòîðîìó äâèãàòüñÿ
int CurrentStep = 0;
@@ -63,6 +68,7 @@ public class XYCoordinatesMovementScript : MonoBehaviour
for (int i = 0; i < MaterialsToInsert; i++)
{
InsertedMaterials.Add(false);
InsertedReels.Add(false);
}
}
void Update()
@@ -149,7 +155,22 @@ public class XYCoordinatesMovementScript : MonoBehaviour
return;
}
}
ReadyToWork = true;
if(ReelsReady){
ReadyToWork = true;
}
}
public void ReelInserted(int index)
{
InsertedReels[index] = true;
foreach (bool reel in InsertedReels) {
if (!reel) {
return;
}
}
ReelsReady = true;
}
public void MaterialRemoved(int index)
@@ -158,6 +179,14 @@ public class XYCoordinatesMovementScript : MonoBehaviour
ReadyToWork = false;
}
public void ReelRemoved(int index)
{
InsertedReels[index] = false;
ReelsReady = false;
}
// Âîçâðàùàåò true, êîãäà íàõîäèòñÿ â êîîðäèíàòå, êîòîðóþ ñîîáùèëè
bool MoveTo(Vector3 cords)