void OnCollisionStay(Collision collisionInfo) { var isoCollision = new IsoCollision(collisionInfo); if (isoCollision.gameObject != null) { IsoTransform.SendMessage("OnIsoCollisionStay", isoCollision, SendMessageOptions.DontRequireReceiver); } }
//forwards Triggers and Collision to the IsoCollider void OnTriggerEnter(Collider other) { var otherghost = other.GetComponent <Ghost>(); if (otherghost != null) { var isoCollider = otherghost.IsoTransform.GetComponent <IsoCollider>(); IsoTransform.SendMessage("OnIsoTriggerEnter", isoCollider, SendMessageOptions.DontRequireReceiver); } }