R1
This commit is contained in:
parent
37252a4edc
commit
19ab6f65e3
258 changed files with 406592 additions and 0 deletions
40
Assets/Scripts/CombustibleItem.cs
Normal file
40
Assets/Scripts/CombustibleItem.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
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;
|
||||
}
|
||||
}
|
Reference in a new issue