public void OnWorkTypeChange(WorkType wType) { if (wType != null) { activeText = wType.Description; activeColor = wType.getColor(); gameObject.SetActive(true); activeColor.a = 1.7f; } }
public override void Construct(Vector3 point, int currentPointValue,WorkType wType) { base.Construct(point, currentPointValue, wType); if (ValidateWorkForQueue(currentPointValue)) { if (GameManager.actionManager.ApplyWork(this)) { Color col = wType.getColor(); col.a = 0.4f; cube = new GLCube(point, Vector3.one, col, this); } } else { GameManager.actionManager.CancelPendingWork(); } }
public void simpleConstruct(Vector3 point, WorkType wType) { cubePoint = point; workType = wType; if (GameManager.actionManager.ApplyWork(this)) { Color col = wType.getColor(); col.a = 0.4f; cube = new GLCube(point, Vector3.one, col, this); } }
public void simpleConstruct(Vector3 point, WorkType wType,SurveyProject project) { surveyProject = project; cubePoint = point; //surveyProject.AddProbeToQueue(this); workType = wType; if (GameManager.actionManager.ApplyWork(this)) { Color col = wType.getColor(); col.a = 0.4f; cube = new GLCube(point, Vector3.one, col, this); } }