I have a ring of fire that I would like to melt ice on the ground. The colliders just don’t seem to register each other. Why won’t the colliders work? (They successfully register the player)
Here’s the scene with the ice patch’s collider
And here’s the scene with the ring of fire’s collider
Here are the objects in the Hierarchy
And here is the Javascript on the ringOfFire
var burnDuration = 6.0;
var damagePerTick = 3.0;
function OnTriggerStay2D( coll : Collider2D) {
Debug.Log(coll.gameObject.name);
if (coll.gameObject.transform.root.tag == "Player"){
var args = new Array ();
args.Push (burnDuration);
args.Push (damagePerTick);
coll.transform.root.SendMessage("setFire", args);
}
if (coll.gameObject.name == "icePatch(Clone)"){
Destroy(coll.gameObject);
Debug.Log("Melted Ice");
}
}