This commit is contained in:
brausjonas
2022-10-17 23:53:04 +02:00
parent ec6cac7581
commit efaa2ced59
1442 changed files with 196305 additions and 24 deletions
@@ -0,0 +1,13 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TransparentBlock : MonoBehaviour
{
public void Trigger()
{
GetComponent<SpriteRenderer>().color = Color.white;
GetComponent<BoxCollider2D>().isTrigger = false;
gameObject.layer = 0;
}
}