using System.Collections; using System.Collections.Generic; using UnityEngine; public class Killable : MonoBehaviour { [SerializeField] public bool isEnnemy = true; public void die(){ if (isEnnemy) this.gameObject.SetActive(false); else { GameObject.Find("Mousy").GetComponent().die(); } } }