union physic helper holder

This commit is contained in:
2016-04-20 22:56:20 +06:00
parent 92ed826849
commit 40488f9424
7 changed files with 39 additions and 40 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
using System.Collections;
namespace IsoTools.Internal {
public class IsoPhysicHelperHolder : MonoBehaviour {
protected GameObject fakeObject {
get { return physicHelper.isoFakeObject; }
}
protected IsoPhysicHelper physicHelper {
get { return IsoUtils.GetOrCreateComponent<IsoPhysicHelper>(gameObject); }
}
protected void DestroyUnnecessaryCheck() {
physicHelper.DestroyIfUnnecessary(this);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 24e253f6697d448229f535a2e796f72b
timeCreated: 1461163442
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: