summaryrefslogtreecommitdiff
path: root/GameCode/DestroyObjects.cs
blob: 8cb52e2be7d6034728179897b0e15525b57b7bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using UnityEngine;

public class DestroyObjects : MonoBehaviour
{
	public GameObject[] objectsToDestroy;

	public void DestroySelf()
	{
		Object.Destroy(base.gameObject);
	}

	public void DestroyAllObjects()
	{
		for (int i = 0; i < objectsToDestroy.Length; i++)
		{
			Object.Destroy(objectsToDestroy[i]);
		}
	}
}