Ejemplo n.º 1
0
    private void StartHarvest()
    {
        state           = States.harvesting;
        resourceCarried = targetResource.GetTileType();

        harvestFinish = resourceMarkers[resourceCarried].transform.position;
        harvestStart  = targetResource.GetHarvestPoint();
        targetResource.HarvestStart();

        resourceMarkers[resourceCarried].transform.position = harvestStart;
        resourceMarkers[resourceCarried].SetActive(true);

        harvestStartTime = Time.timeSinceLevelLoad;
    }