Объединяю с работой dfilipkin
This commit is contained in:
1 parent
05bd220cad
commit
b167fc448f
240 files changed
+315725
-12011
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Palmmedia.ReportGenerator.Core;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
@@ -36,39 +37,54 @@ public class MachineCoordinatesMovementScript : MonoBehaviour
|
||||
[SerializeField]
|
||||
bool TestProgramStart;
|
||||
|
||||
[SerializeField]
|
||||
bool DebugStart = false;
|
||||
[SerializeField]
|
||||
bool DebugStart = false;
|
||||
|
||||
[SerializeField]
|
||||
[SerializeField]
|
||||
bool Restart = false;
|
||||
|
||||
// Ôëàã ðàáîòû, ïî íåìó ïðîâåðÿåòñÿ, âûïîëíÿåòñÿ ëè ñåé÷àñ êàêàÿ-ëèáî ïðîãðàììà
|
||||
bool WorkInProgress = false;
|
||||
|
||||
[SerializeField]
|
||||
List<bool> InsertedMaterials;
|
||||
[SerializeField]
|
||||
List<bool> InsertedMaterials;
|
||||
|
||||
[SerializeField]
|
||||
List<bool> InsertedReels;
|
||||
List<bool> InsertedReels;
|
||||
|
||||
bool ReadyToWork = false;
|
||||
|
||||
bool ReelsReady = false;
|
||||
|
||||
// Íîìåð îáúåêòà â CurrentProgram, ê êîòîðîìó äâèãàòüñÿ
|
||||
int CurrentStep = 0;
|
||||
[SerializeField]
|
||||
List<Vector3> testProgr;
|
||||
|
||||
List<Vector3> CurrentProgram;
|
||||
[SerializeField]
|
||||
List<Vector3> PalmTreeProg;
|
||||
|
||||
// Ãðàíèöû ïî êîîðäèíàòàì: (0.435, 0.02, 0.4125)
|
||||
[SerializeField]
|
||||
List<Vector3> _ComponentsHoldersCords;
|
||||
|
||||
[SerializeField]
|
||||
// Íîìåð îáúåêòà â CurrentProgram, ê êîòîðîìó äâèãàòüñÿ
|
||||
static public int CurrentStep = 0 ;
|
||||
|
||||
static public List<Vector3> CurrentProgram { get; private set; }
|
||||
static public List<Vector3> ComponentsHoldersCords { get; private set; }
|
||||
|
||||
|
||||
|
||||
// Ãðàíèöû ïî êîîðäèíàòàì: (0.435, 0.02, 0.4125)
|
||||
|
||||
[SerializeField]
|
||||
GameObject Board;
|
||||
|
||||
void Start()
|
||||
{
|
||||
//DiagonalMoveDbg = false;
|
||||
for (int i = 0; i < MaterialsToInsert; i++)
|
||||
ComponentsHoldersCords = _ComponentsHoldersCords;
|
||||
|
||||
CurrentProgram = new(PalmTreeProg);
|
||||
//DiagonalMoveDbg = false;
|
||||
for (int i = 0; i < MaterialsToInsert; i++)
|
||||
{
|
||||
InsertedMaterials.Add(false);
|
||||
InsertedReels.Add(false);
|
||||
@@ -166,23 +182,23 @@ public class MachineCoordinatesMovementScript : MonoBehaviour
|
||||
ReelsReady = true;
|
||||
}
|
||||
|
||||
public void MaterialRemoved(int index)
|
||||
{
|
||||
InsertedMaterials[index] = false;
|
||||
public void MaterialRemoved(int index)
|
||||
{
|
||||
InsertedMaterials[index] = false;
|
||||
|
||||
ReadyToWork = false;
|
||||
}
|
||||
ReadyToWork = false;
|
||||
}
|
||||
|
||||
public void ReelRemoved(int index)
|
||||
{
|
||||
InsertedReels[index] = false;
|
||||
{
|
||||
InsertedReels[index] = false;
|
||||
|
||||
ReelsReady = false;
|
||||
}
|
||||
ReelsReady = false;
|
||||
}
|
||||
|
||||
|
||||
// Âîçâðàùàåò true, êîãäà íàõîäèòñÿ â êîîðäèíàòå, êîòîðóþ ñîîáùèëè
|
||||
bool MoveTo(Vector3 cords)
|
||||
// Âîçâðàùàåò true, êîãäà íàõîäèòñÿ â êîîðäèíàòå, êîòîðóþ ñîîáùèëè
|
||||
bool MoveTo(Vector3 cords)
|
||||
{
|
||||
float XMoveDistance = cords.x - XAxis.localPosition.x;
|
||||
float YMoveDistance = cords.y - YAxis.localPosition.y;
|
||||
@@ -257,11 +273,7 @@ public class MachineCoordinatesMovementScript : MonoBehaviour
|
||||
}
|
||||
|
||||
// Ãðàíèöû ïî êîîðäèíàòàì: (0.435, 0.02, 0.4125)
|
||||
[SerializeField]
|
||||
List<Vector3> testProgr;
|
||||
|
||||
[SerializeField]
|
||||
List<Vector3> PalmTreeProg;
|
||||
|
||||
|
||||
public void StartWorkFromButton()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user