Advertisement
SizilStank

Untitled

Feb 1st, 2024
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | Gaming | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using Cinemachine;
  6.  
  7. public class EventManager : MonoBehaviour
  8. {
  9.    
  10.     public static event Action CollisionEvent01;
  11.  
  12.     public CinemachineVirtualCameraBase[] _vCams;
  13.     public int _vCamsIndex = 0;
  14.  
  15.  
  16.     //using this to text that the evet works
  17.     private void Update()
  18.     {
  19.         if (Input.GetKeyDown(KeyCode.E))
  20.         {
  21.             CollisionEvent01();
  22.         }
  23.     }
  24.  
  25.  
  26.     public static event Action CollisionEvent02;
  27.  
  28.  
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement