Shamba

Flash_Camera

Jun 7th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Flash_Camera : MonoBehaviour {
  6.  
  7.     public Flash image;
  8.  
  9.     private void OnTriggerEnter(Collider other)
  10.     {
  11.         if(other.gameObject.tag == "Player")
  12.         {
  13.             image.CameraFlash();
  14.         }
  15.     }
  16. }
Add Comment
Please, Sign In to add comment