mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
testing hope this works 👎
I really do ;(
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72d070738236aaa4395d6a65bf0b2c59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user