28 lines
469 B
C#
28 lines
469 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityScript.Lang;
|
|
|
|
[Serializable]
|
|
public class checkcustards : MonoBehaviour
|
|
{
|
|
public GameObject[] gos;
|
|
|
|
public virtual void Start()
|
|
{
|
|
gos = GameObject.FindGameObjectsWithTag("Paper");
|
|
}
|
|
|
|
public virtual void Update()
|
|
{
|
|
gos = GameObject.FindGameObjectsWithTag("Paper");
|
|
if (Extensions.get_length((System.Array)gos) == 10)
|
|
{
|
|
UnityEngine.Object.DestroyObject(gameObject);
|
|
}
|
|
}
|
|
|
|
public virtual void Main()
|
|
{
|
|
}
|
|
}
|