23 lines
580 B
C#
23 lines
580 B
C#
/// ---------------------------------------------
|
|
/// Behavior Designer
|
|
/// Copyright (c) Opsive. All Rights Reserved.
|
|
/// https://www.opsive.com
|
|
/// ---------------------------------------------
|
|
namespace Opsive.BehaviorDesigner.Samples
|
|
{
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Destroys the GameObject when the game starts.
|
|
/// </summary>
|
|
public class DestroyOnStart : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// Destroys the GameObject.
|
|
/// </summary>
|
|
private void Start()
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
} |