Tanoda
PreventDestroy.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
public
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();
12
GILES
.
pb_Selection
.
Clear
();
13
}
14
}
Debug
UnityEngine.Debug Debug
Definition:
TanodaServer.cs:19
GILES.pb_Selection
Definition:
pb_Selection.cs:13
GILES.pb_Selection.Clear
static void Clear()
Definition:
pb_Selection.cs:61
PreventDestroy
Definition:
PreventDestroy.cs:6
GILES
Definition:
pb_CollectionUtil.cs:4
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
TestScripts
PreventDestroy.cs
Generated by
1.9.3