OnStartDelete.cs 858 B

123456789101112131415161718192021222324
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="OnStartDelete.cs" company="Exit Games GmbH">
  3. // Part of: Photon Unity Utilities,
  4. // </copyright>
  5. // <summary>
  6. // This component will destroy the GameObject it is attached to (in Start()).
  7. // </summary>
  8. // <author>developer@exitgames.com</author>
  9. // --------------------------------------------------------------------------------------------------------------------
  10. using UnityEngine;
  11. namespace Photon.Chat.UtilityScripts
  12. {
  13. /// <summary>This component will destroy the GameObject it is attached to (in Start()).</summary>
  14. public class OnStartDelete : MonoBehaviour
  15. {
  16. // Use this for initialization
  17. private void Start()
  18. {
  19. Destroy(this.gameObject);
  20. }
  21. }
  22. }