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

public class Game : MonoBehaviour
{
    const string GOB_NAME = "Game";

    static Game instance;

    public int plantNum = 0;
    public int plantsUsed = 0;
    public int homesPlaced = 0;
    public int buildingsPlaced = 0;
    public int menPlaced = 0;

    public static Game I
    {
        get
        {
            if (instance == null)
            {
                var gob = new GameObject(GOB_NAME);
                gob.AddComponent<Game>();
            }

            return instance;
        }
    }

    private void OnEnable()
    {
        DontDestroyOnLoad(transform);
        instance = this;
    }

}
