mirror of
https://github.com/ConjureETS/MeltedBananasOJam2016.git
synced 2026-03-24 02:21:06 +00:00
ajout Destroy sur trigger
This commit is contained in:
parent
0259352313
commit
6c53ecf703
@ -55,4 +55,12 @@ public class TileController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter (Collider other)
|
||||||
|
{
|
||||||
|
if (other.tag == "DestroyTrigger")
|
||||||
|
{
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user