예제 #1
0
 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);
 }
예제 #2
0
    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);
                }
            }
        }
    }