Orthello documenations says this is the way to dect collisions:
void Start()
{
// Lookup this block's sprite
sprite = GetComponent<OTSprite>();
// Set this sprite's collision delegate
// HINT : We could use sprite.InitCallBacks(this) as well.
// but because delegates are the C# way we will use this technique
sprite.onCollision = OnCollision;
}
// This method will be called when this block is hit.
public void OnCollision(OTObject owner)
{
// Set color fading indicator
colorFade = true;
// Reset fade time
fadeTime = 0;
}
http://www.wyrmtale.com/orthello/collisions
Yes, that works, but, owner.tag returns tag of the current object.
Is it possible to get tag of the object our object collided to?