using UnityEngine;
using System.Collections;

public class FillableWaterBody : MonoBehaviour {
	
	Transform spriteTransform;
	public Vector3 spriteStartScale;
	public float origionalScaleY;
	 
	void Start () {
		spriteTransform = transform.Find("WaterSprite");
		spriteStartScale = spriteTransform.localScale;

		spriteTransform.localPosition -= new Vector3(0, 3.02f * spriteStartScale.y);
		spriteTransform.localScale = new Vector3(spriteStartScale.x, 0);
	}

	
	void Update () {
		spriteTransform.localScale = new Vector3(spriteStartScale.x, spriteStartScale.y * ((Player)GameObject.FindGameObjectWithTag ("Player").GetComponent (typeof(Player))).Sadness);
	}
}
