Commit 2956377e authored by Sebastian's avatar Sebastian
Browse files

small fixes

parent 8a90b831
...@@ -5,7 +5,7 @@ namespace _Game.Scripts.Elements ...@@ -5,7 +5,7 @@ namespace _Game.Scripts.Elements
{ {
public class InteractionObject : MonoBehaviour public class InteractionObject : MonoBehaviour
{ {
[SerializeField] private float _cooldown; [SerializeField] private float cooldown;
private bool _isReady = true; private bool _isReady = true;
private SpriteRenderer _spriteRenderer; private SpriteRenderer _spriteRenderer;
private Color _defaultColor; private Color _defaultColor;
...@@ -23,7 +23,7 @@ namespace _Game.Scripts.Elements ...@@ -23,7 +23,7 @@ namespace _Game.Scripts.Elements
print("Infused " + this.gameObject.tag); print("Infused " + this.gameObject.tag);
_isReady = false; _isReady = false;
_spriteRenderer.color = _idleColor; _spriteRenderer.color = _idleColor;
Invoke("SetReady", _cooldown); Invoke("SetReady", cooldown);
} }
private void SetReady() 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