using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour
{
// Start is called before the first frame update
public GameObject Myenemy;
void Start()
{
GameObject.Instantiate(Myenemy,new Vector3(1,(float)0.5,1),Quaternion.identity);
}
// Update is called once per frame
void Update()
{
}
}
private void OnTriggerEnter2D(Collider2D collision)
{
if ("Enemy" == collision.gameObject.tag)
{
Destroy(collision.gameObject);
// GameMgr.instance.score++;
}
}