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); } 

enter image description here enter image description here

try ontriggerenter2d , , put function inside cactus .


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -