using UnityEngine;
namespace Passer.Core {
///
/// Destroyer of things
///
///
/// \version 4
public class Destroyer : MonoBehaviour {
///
/// Destroy this GameObject
///
public void SelfDestroy() {
Object.Destroy(this.gameObject);
}
///
/// Destroy the given GameObject
///
/// The GameObject to Destroy
public void Destroy(GameObject gameObject) {
Object.Destroy(gameObject);
}
///
/// Exit the application
///
public void ApplicationQuit() {
Application.Quit();
}
}
}