14 lines
231 B
C#
14 lines
231 B
C#
4 months ago
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Unity.Multiplayer.Samples.Utilities
|
||
|
{
|
||
|
public class DontDestroyOnLoad : MonoBehaviour
|
||
|
{
|
||
|
void Awake()
|
||
|
{
|
||
|
DontDestroyOnLoad(gameObject);
|
||
|
}
|
||
|
}
|
||
|
}
|