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