12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Enemy : MonoBehaviour
- {
- protected static int count = 0;
- public GameObject GamePassPenel;
- private void OnMouseDown()
- {
- count++;
- Destroy(gameObject);
- if (count >= 6)
- {
- GamePassEvent.Trigger();
- }
- }
- }
|