Files
Cielonos/Packages/com.opsive.behaviordesigner/Samples~/Scripts/DestroyOnStart.cs
SoulliesOfficial 50ee502684 完善
2026-02-13 09:22:11 -05:00

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);
}
}
}