Tanoda
PreventDestroy.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class PreventDestroy : MonoBehaviour
6{
7 private void OnDisable()
8 {
9 Debug.Log("I live FOREVER! (kind of)");
10 var clone = Instantiate(gameObject);
11 clone.name = clone.name.Replace("(Clone)", "").Trim();
13 }
14}
UnityEngine.Debug Debug
Definition: TanodaServer.cs:19
static void Clear()
Definition: pb_Selection.cs:61