Skip to content
Snippets Groups Projects
Commit b7442293 authored by KritzJ's avatar KritzJ
Browse files

Upload New File

parent 0288c3ff
No related branches found
No related tags found
No related merge requests found
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);
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment