static void OnRuntimeMethodLoad() { if (shared == null) { shared = CreateShared(); } }
void OnEnable() { if (isShared) { if (shared == null) { shared = this; } else { GameObject.Destroy(gameObject); } } }