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

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

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -