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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -