How to count score

How do I do it to where when the enemy dies, it counts 160 points


Script for reference

using UnityEngine;
using System.Collections;

public class Game : MonoBehaviour {

public int points;
public GameObject[] zombies;

// Use this for initialization
void Start () {

	points = 100;


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

	zombies = GameObject.FindGameObjectsWithTag("zombie");


@431 Studios your question and code is very vague.
based on what you wrote. i will take a guess.

In your enemy script (not the one your showing) please put in the declared variables

{This is used to detect the script with the points in}

public Game gamescript;

{Put this just before your enemy dies in their script}

gamescript.points = 160;

if you want to add it on to the original points put

gamescript.points += 160

You can work it out from thier.
I hope this helps