campfire/Assets/SteamVR/InteractionSystem/Core/Scripts/DontDestroyOnLoad.cs

22 lines
565 B
C#
Raw Permalink Normal View History

2020-04-29 19:40:05 +02:00
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: This object won't be destroyed when a new scene is loaded
//
//=============================================================================
using UnityEngine;
using System.Collections;
namespace Valve.VR.InteractionSystem
{
//-------------------------------------------------------------------------
public class DontDestroyOnLoad : MonoBehaviour
{
//-------------------------------------------------
void Awake()
{
DontDestroyOnLoad( this );
}
}
}