Commit 2956377e authored by Sebastian's avatar Sebastian

small fixes

parent 8a90b831
......@@ -5,7 +5,7 @@ namespace _Game.Scripts.Elements
{
public class InteractionObject : MonoBehaviour
{
[SerializeField] private float _cooldown;
[SerializeField] private float cooldown;
private bool _isReady = true;
private SpriteRenderer _spriteRenderer;
private Color _defaultColor;
......@@ -23,7 +23,7 @@ namespace _Game.Scripts.Elements
print("Infused " + this.gameObject.tag);
_isReady = false;
_spriteRenderer.color = _idleColor;
Invoke("SetReady", _cooldown);
Invoke("SetReady", cooldown);
}
private void SetReady()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment