Friday, 3 April 2015

Unity3DTurtorial: 28 Destroy Everything

Unity3D Turtorial: 28 Destroy-Everything

+
Announcement









THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 28 

1. Create New java and name it : DestroyEverything


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

// Destroy everything that enters the trigger

function OnTriggerEnter (other : Collider) {
Destroy(other.gameObject);
}







 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-







0 comments:

Post a Comment