mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
testing hope this works 👎
I really do ;(
This commit is contained in:
1 parent
f3447c6b15
commit
4150e5b926
10 files changed
+4086
-1045
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user