Skip to content

Instantly share code, notes, and snippets.

@EsProgram
Created December 3, 2014 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EsProgram/07abae93b3d22245169d to your computer and use it in GitHub Desktop.
Save EsProgram/07abae93b3d22245169d to your computer and use it in GitHub Desktop.
using System.Collections;
using UnityEngine;
[RequireComponent(typeof(MoveBall))]
[RequireComponent(typeof(DestroyOnOutOfCamera))]
[RequireComponent(typeof(Collider2D))]
public class Ball : MonoBehaviour
{
private void Start()
{
Destroy(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment