using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour
{
public static Enemy instance;
public Rigidbody2D rb;
public Animator anim;
// Start is called before the first frame update
protected virtual void Start()
{
instance = this;
rb = GetComponent<Rigidbody2D>();
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
}
public void DeathFx()
{
anim.SetBool("deathing", true);
}
public void Death()
{
Destroy(gameObject);
Debug.Log("55");
}
}