campfire/Assets/SteamVR/InteractionSystem/Core/Scripts/DontDestroyOnLoad.cs
2020-04-29 20:40:05 +03:00

22 lines
565 B
C#

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