1
0
Fork 0
This repository has been archived on 2024-01-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Global-Game-Jam-2019/Assets/Scripts/CombustibleItem.cs
2019-01-27 14:54:55 +01:00

40 lines
800 B
C#

using System;
using UnityEngine;
public class CombustibleItem
{
private float quantityOfEnergy;
private Sprite sprite;
private GameObject gameObject;
public CombustibleItem(float quantityOfEnergy, Sprite sprite)
{
this.quantityOfEnergy = quantityOfEnergy;
this.sprite = sprite;
}
public void SetQuantityOfEnergy(float quantityOfEnergy)
{
this.quantityOfEnergy = quantityOfEnergy;
}
public float GetQuantityOfEnergy()
{
return this.quantityOfEnergy;
}
public Sprite GetSprite()
{
return this.sprite;
}
public void SetGameObject (GameObject gameObject)
{
this.gameObject = gameObject;
}
public GameObject GetGameObject ()
{
return this.gameObject;
}
}