สคริปต์ Unity นี้มีความผิดพลาดตรงไหนครับ
----------------------------------------------------------------------
var PlayerState : float;
function Update ()
{
	PlayerStateController();
	PlayerAnims();
	
}
function PlayerStateController()
{
	if (Input.GetAxis("Vertical")!=0 || Input.GetAxis("Horizontal") !=0)
	{
	if (Input.GetButton("Sprint"))
		{
		PlayerState = 2;
		}
	}
	else
{
PlayerState = 0;
}
}
function PlayerAnims()
{
if (PlayerState == 0)
	{
	PlayerAnimSec.animation.CrossFade("idle animation",0.4);
	}
else if (PlayerState == 1)
	{
	PlayerAnimSec.animation.CrossFade("walk animation",0.4);
	}
else if (PlayerState == 2)
	{
	PlayerAnimSec.animation.CrossFade("sprint animation",0.4);
	}
}
----------------------------------------------------------------------
ตัวโปรแกรมผมมันแจ้งว่าไม่รู้จัก PlayerAnimSec ตลอดเลยไม่ทราบว่าผิดพลาดตรงไหนหรอครับ สคริปต์นี้ผมได้มาจากคลิปของฝรั่ง แต่เค้าก็ไม่เห็นผิดพลาดอะไร รบกวนผู้รู้ด้วยนะครับ
ขอบคุณครับ 
