Unity3D Enable and Disable Light With Key Tutorial 21/24

Advertisemen

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








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












Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D