diff --git a/projectMDE_acceleo/src-gen2/HealthPack.cs b/projectMDE_acceleo/src-gen2/HealthPack.cs new file mode 100644 index 0000000000000000000000000000000000000000..7000fb5fea1833590028cc8a9afb5b46bd7cf93c --- /dev/null +++ b/projectMDE_acceleo/src-gen2/HealthPack.cs @@ -0,0 +1,22 @@ +namespace DSL { + // using directives + using UnityEngine; + using System; + // Type definitions + public class HealthPack : UnityEngine.MonoBehaviour { + + // methods + void Update() { + } + + void Start() { + } + + public void OnTriggerEnter2D(UnityEngine.Collider2D collider) { + if (collider.gameObject.tag == "Player") { + DataManager.instance.SetLives(DataManager.instance.GetLives()+1); + } + } + + } +}