Archives de catégorie : Méthodologie

Unity 3D – Allumer lumières


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /public_html/blog/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
 
 
var lightObject : Light;
 
function  OnTriggerEnter () {
lightObject.enabled = true;
}
 
function OnTriggerExit () {
lightObject.enabled = false;
}