Advertisement
Sebsebeleb

Enemy.cs

Jan 21st, 2022 (edited)
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.15 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Enemy : MonoBehaviour, ICollision
  4. {
  5.     public void Collided()
  6.     {
  7.         Instantiate(gameObject);
  8.     }
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement