mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-16 14:09:00 +07:00
DontDestroy working with iso physic now
This commit is contained in:
@@ -48,6 +48,7 @@ namespace IsoTools.Internal {
|
|||||||
_isoFakeObject = new GameObject("_Fake" + gameObject.name);
|
_isoFakeObject = new GameObject("_Fake" + gameObject.name);
|
||||||
_isoFakeObject.AddComponent<IsoFakeObject>().Init(iso_object);
|
_isoFakeObject.AddComponent<IsoFakeObject>().Init(iso_object);
|
||||||
_isoFakeObject.hideFlags = HideFlags.HideInHierarchy | HideFlags.NotEditable;
|
_isoFakeObject.hideFlags = HideFlags.HideInHierarchy | HideFlags.NotEditable;
|
||||||
|
GameObject.DontDestroyOnLoad(_isoFakeObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user