using UnityEngine;
using System.Collections;

public class PlayerControl : MonoBehaviour {

	#region Private Variables
	private Animator _animator;
	private AudioSource _audio;
	#endregion


	#region Events
	void Awake () {

		_audio = GetComponent <AudioSource> ();
		_animator = GetComponent <Animator> ();

	}
	#endregion


	#region Methods
	public void Animate (bool isWalking) {

		_animator.SetBool ("Walking", isWalking);
		
	}

	public void PlayFootstep () {

		_audio.Play ();

	}
	#endregion

}
