Delete Data Handler.

//Add this script to a random game object in the main menu. The script deletes the DataHandler when in main menu to make sure multiple copies of DataHandler doesn’t exist.

using UnityEngine;
using System.Collections;

public class DeleteDataHandler : MonoBehaviour {

// Use this for initialization
 void Start () {

Destroy(GameObject.Find ("DataHandler"));
 }
 
 // Update is called once per frame
 void Update () {
 
 }
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s