• This project
    • Loading...
  • Sign in

castone-01-ultra-haptics / GetTheBoxGame

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • GetTheBoxGame
  • GaeGaeBi
  • Assets
  • Simple Explosion
  • Scripts
  • light_control.cs
  • 경규빈's avatar
    create the file · e4683253
    e4683253
    경규빈 authored 2018-06-20 16:59:21 +0900
light_control.cs 346 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
// script to delete light after explosition
using UnityEngine;
using System.Collections;

public class light_control : MonoBehaviour {
	private float timeout = 0.5f;
	public Light Light;

	void Start () {
	
	}
	
	void Update () {
		if(timeout>0.1f)
		{
			timeout-=Time.deltaTime;
			Light.range=15;
		}
		else
		{
		Light.range=0;
		}
	
	}
}