Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class KillObject : MonoBehaviour
- {
- void Start()
- {
- }
- private void OnTriggerEnter2D(Collider2D other) {
- BirbController birb = other.gameObject.GetComponent<BirbController>();
- if (birb != null)
- {
- birb.IsDead = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement