Skip to content
Snippets Groups Projects
DataManager.cs 557 B
Newer Older
namespace DSL {
	// using directives
	using UnityEngine;
	using System;
	// Type definitions
mcder's avatar
mcder committed
	public class DataManager : UnityEngine.MonoBehaviour {
	
		// members
		public static DSL.DataManager instance;
mcder's avatar
mcder committed
		public int lives;
		private void Awake() {
			instance??= this;
		}
	
		public int GetLives() {
			return this.lives;
		}
	
		public int GetScore() {
			return this.score;
		}
	
		public void SetLives(int value) {
			this.lives = value;
		}
	
		public void SetScore(int value) {
			this.score = value;