22 lines
565 B
C#
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 );
|
|||
|
}
|
|||
|
}
|
|||
|
}
|