using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThrowerS : MonoBehaviour {

	public Sprite freeSprite;
	public Sprite holdingSprite;

	public BallS ball;

	void Update () {
		if (ball.thrown && GetComponent<SpriteRenderer> ().sprite != freeSprite) {
			GetComponent<SpriteRenderer> ().sprite = freeSprite;
		}
		if (!ball.thrown && GetComponent<SpriteRenderer> ().sprite != holdingSprite) {
			GetComponent<SpriteRenderer> ().sprite = holdingSprite;
		}
	}
}
