Skip to content
Snippets Groups Projects
Quarry.cs 517 B
Newer Older
Erno Lokkila's avatar
Erno Lokkila committed
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

Leevi Grönlund's avatar
Leevi Grönlund committed
public class Quarry : Resource
Erno Lokkila's avatar
Erno Lokkila committed
{
Leevi Grönlund's avatar
Leevi Grönlund committed
 
    public override void checkExistence()
    {
        if (resources < 1)
        {
            Destroy(gameObject);
        }
    }

    public override void refreshSprite()
    {

    }

Erno Lokkila's avatar
Erno Lokkila committed
    // Start is called before the first frame update
    void Start()
    {
Leevi Grönlund's avatar
Leevi Grönlund committed
        resources = Random.Range(2000, 4000);
Erno Lokkila's avatar
Erno Lokkila committed
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}