﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Enemy : MonoBehaviour
{
    public int points;

    private void OnDestroy()
    {
        //add points to the scoreboard
        Scoreboard.Points += points;
    }

    private void OnMouseDown()
    {
        //destroy when clicked
        Destroy(gameObject);
    }
}
