using UnityEngine;
using System.Collections;

public class PauseButtonSpriteSwap : MonoBehaviour {

	public Sprite sPlayButton;
	public Sprite sPauseButton;
	SpriteRenderer SRend;

	// Use this for initialization
	void Start () {
	
		SRend = GetComponent<SpriteRenderer> ();

	}

	public void OnPauseSpriteSwap () {

		if (SRend.sprite = sPlayButton) {

			SRend.sprite = sPauseButton;

		}

		if (SRend.sprite = sPauseButton) {
			
			SRend.sprite = sPlayButton;
			
		}

	}
}
