private void Update() { if (pi.getKeys() == null || pi.getKeys().Count == 0) { img.sprite = inactiveImage; } else if (pi.getKeys().Count > 0) { img.sprite = activeImage; } }
private void Update() { if (pi.getKeys() == null || pi.getKeys().Count == 0) { img.sprite = inactiveImage; } else if (pi.getKeys().Count > 0) { img.sprite = activeImage; } }