15 lines
317 B
C#
15 lines
317 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class KillRoger : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
GameObject roger;
|
|
|
|
private void OnTriggerEnter(Collider other) {
|
|
if(other.tag == "Player"){
|
|
roger.GetComponent<Killable>().die();
|
|
}
|
|
}
|
|
} |