mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
feat: add assets + obstacle (#26)
Co-authored-by: Théo LUDWIG <contact@theoludwig.fr>
This commit is contained in:
21
Assets/Scripts/Obstacle.cs
Normal file
21
Assets/Scripts/Obstacle.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Obstacle : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void OnTriggerEnter2D(Collider2D collision)
|
||||
{
|
||||
Debug.Log("Test");
|
||||
}
|
||||
}
|
2
Assets/Scripts/Obstacle.cs.meta
Normal file
2
Assets/Scripts/Obstacle.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e105dbba5bf85a944a8270ed72ebd3d2
|
Reference in New Issue
Block a user