• This project
    • Loading...
  • Sign in

I_Jemin / Unity-OpenVR-Shooter-Template

%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
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Unity-OpenVR-Shooter-Template
  • Assets
  • EffectExamples
  • Shared
  • Scripts
  • DecalDestroyer.cs
  • I_Jemin's avatar
    Init · 6a01672f
    6a01672f
    I_Jemin authored 2017-11-03 10:57:12 +0900
DecalDestroyer.cs 267 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DecalDestroyer : MonoBehaviour {

	public float lifeTime = 5.0f;

	private IEnumerator Start()
	{
		yield return new WaitForSeconds(lifeTime);
		Destroy(gameObject);
	}
}