void RegisterMiningWork(MiningWork work) { AddMineralToDivision(work.pointValue); GLCube glCube = new GLCube(work.cubePoint, Vector3.one, UtilityColor.HexToColor( "ff9428"), 2.5f, true); PendingOfflineTimer = float.MaxValue; RegisterWork(work); }
void DeliverPointValue(Vector3 point, int value) { if (point != position && !doesPointExistAsWork(point)) { //GLCube cube = new GLCube(point, Vector3.one, Color.blue, this); PointObjectPrefab PODataType = PointObjectPrefabCollection.GetPointObjectDataType(value); if (PODataType.isMinable) { if (mineralDivisionTypes.Count == 0) { allowedMinerals.Add(value); } if (allowedMinerals.Contains(value)) { MiningWork currentWork = new MiningWork(); currentWork.Construct(point, value, this); RegisterMiningWork(currentWork); } } } }