using System.Collections; using System.Collections.Generic; using UnityEngine; public class Collision : MonoBehaviour { public GameObject Key; void OnTriggerEnter2D(Collider2D Key) { Debug.Log("!!!!"); } void Awake() { Key = GameObject.Find("Slot1"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)