testing hope this works 👎

I really do ;(
This commit is contained in:
Unknown
2022-02-27 03:32:43 -06:00
parent f3447c6b15
commit 4150e5b926
10 changed files with 4086 additions and 1045 deletions
+16
View File
@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class collectable : MonoBehaviour
{
public int collect =0;
public BoxCollider2D box;
public void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.tag == "Player") {
box.isTrigger = true;
this.gameObject.SetActive(false);
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 72d070738236aaa4395d6a65bf0b2c59
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: