mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
Final touches
This commit is contained in:
14
Assets/Scripts/KillPlayerOnCollision.cs
Normal file
14
Assets/Scripts/KillPlayerOnCollision.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class KillPlayerOnCollision : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.CompareTag("Player"))
|
||||
{
|
||||
PlayerMovement.Instance().Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user