physics wip

This commit is contained in:
2015-07-07 20:00:18 +06:00
parent ba3448a39b
commit 7342b70d82
20 changed files with 363 additions and 154 deletions
@@ -0,0 +1,30 @@
using UnityEngine;
using System.Collections;
namespace IsoTools { namespace Examples {
public class IsoEchoListener : MonoBehaviour {
void OnIsoTriggerEnter(IsoCollider iso_collider) {
Debug.LogFormat(
"OnIsoTriggerEnter. self:{0} other:{1}",
gameObject.name, iso_collider.gameObject.name);
}
void OnIsoTriggerExit(IsoCollider iso_collider) {
Debug.LogFormat(
"OnIsoTriggerExit. self:{0} other:{1}",
gameObject.name, iso_collider.gameObject.name);
}
void OnIsoCollisionEnter(IsoCollision iso_collision) {
Debug.LogFormat(
"OnIsoCollisionEnter. self:{0} other:{1}",
gameObject.name, iso_collision.GameObject.name);
}
void OnIsoCollisionExit(IsoCollision iso_collision) {
Debug.LogFormat(
"OnIsoCollisionExit. self:{0} other:{1}",
gameObject.name, iso_collision.GameObject.name);
}
}
}} // namespace IsoTools::Examples
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 5528e050e2d53409f9a4f1662625b0bf
timeCreated: 1436185285
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: