init
This commit is contained in:
commit
862afc9b7a
478 changed files with 197737 additions and 0 deletions
14
Assets/Scripts/TriggerBoss.cs
Normal file
14
Assets/Scripts/TriggerBoss.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TriggerBoss : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerEnter2D(Collider2D collision)
|
||||
{
|
||||
if (collision.transform.tag == "Player")
|
||||
{
|
||||
GameObject.FindGameObjectWithTag("Boss").GetComponent<Boss>().enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue