Sunday, 26 April 2015

Unity3D Enable and Disable Light With Key Tutorial 21/24

Unity3D Enable and Disable Light  With Key















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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 21724
Unity3D Enable and Disable Light  With Key


1. Create New java and name it : EnableandDisableLight


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



function Update () {
if (Input.GetKeyDown (KeyCode.Space))
light.intensity =0;

if (Input.GetKeyUp (KeyCode.Space))
light.intensity =2;
}








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












0 comments:

Post a Comment