void ChangeState()
{
audio.pitch = Random.Range(1.0f, 2.0f);
if (currState == shiftState.HUMAN)
{
Camera.main.GetComponent <VignetteAndChromaticAberration> ().chromaticAberration = 100;
currState = shiftState.WOLF;
currDamage = w_damage;
StartCoroutine(pCtrl.ShapeShift());
StartCoroutine(Shake());
audio.PlayOneShot(shiftSound);
transform.position = new Vector2(transform.position.x, transform.position.y);
col.size = new Vector2(0.5f, 0.7f);
col.offset = new Vector2(0, 0.4f);
cc.recalculateDistanceBetweenRays();
}
else
{
currState = shiftState.HUMAN;
currDamage = h_damage;
StartCoroutine(pCtrl.ShapeShift());
Camera.main.GetComponent <VignetteAndChromaticAberration> ().chromaticAberration = 100;
StartCoroutine(Shake());
audio.PlayOneShot(shiftSound);
transform.position = new Vector2(transform.position.x, transform.position.y);
col.size = new Vector2(0.5f, 1.2f);
col.offset = new Vector2(0, 0.6f);
cc.recalculateDistanceBetweenRays();
}
audio.pitch = 1;
}