Advertisement
DaDogeDevelopment

Kick hammer script

Jul 11th, 2023
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Photon.Pun;
  5.  
  6. public class kick : MonoBehaviour
  7. {
  8.     public PhotonView ptView;
  9.  
  10.     void OnTriggerEnter(Collider other)
  11.     {
  12.         if (ptView.IsMine)
  13.         {
  14.             return;
  15.         }
  16.         else
  17.         {
  18.             Application.Quit();
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement