// -------------------------------------------------------------------------------------------------------------------- // // Part of: Photon Unity Utilities, // // // This component will destroy the GameObject it is attached to (in Start()). // // developer@exitgames.com // -------------------------------------------------------------------------------------------------------------------- using UnityEngine; namespace Photon.Pun.UtilityScripts { /// This component will destroy the GameObject it is attached to (in Start()). public class OnStartDelete : MonoBehaviour { // Use this for initialization private void Start() { Destroy(this.gameObject); } } }