javascript - Unity: Trump won't die on my cactus. Why? -
so, wan't game go level 2 when trump collides cactus. why wont work? code attached cacti.
function ontriggerenter2d(collider : collider2d) { application.loadlevel(2); }
try ontriggerenter2d , , put function inside cactus .
Comments
Post a Comment