performance trip

This commit is contained in:
2015-07-10 00:09:08 +06:00
parent d26c7e4a12
commit 74503911a5
12 changed files with 51110 additions and 41 deletions

View File

@@ -188,10 +188,10 @@ namespace IsoTools {
IsoWorld _isoWorld = null;
public IsoWorld IsoWorld {
get {
if ( !_isoWorld ) {
if ( (object)_isoWorld == null ) {
_isoWorld = GameObject.FindObjectOfType<IsoWorld>();
}
if ( !_isoWorld ) {
if ( (object)_isoWorld == null ) {
throw new UnityException("IsoObject. IsoWorld not found!");
}
return _isoWorld;