34 lines
765 B
C#
34 lines
765 B
C#
using UnityEngine;
|
|
|
|
namespace Passer {
|
|
|
|
/// <summary>
|
|
/// Destroyer of things
|
|
/// </summary>
|
|
///
|
|
public class Destroyer : MonoBehaviour {
|
|
|
|
/// <summary>
|
|
/// Destroy this GameObject
|
|
/// </summary>
|
|
public void SelfDestroy() {
|
|
Object.Destroy(this.gameObject);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Destroy the given GameObject
|
|
/// </summary>
|
|
/// <param name="gameObject">The GameObject to Destroy</param>
|
|
public void Destroy(GameObject gameObject) {
|
|
Object.Destroy(gameObject);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Exit the application
|
|
/// </summary>
|
|
public void ApplicationQuit() {
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|