public void SetIsPawnAction(bool action) { IsPawnAction = action; playerPanel.OnPawnActionChange(action); //Animator animator=selectedPawn.transform.GetChild(0).GetComponent<Animator>(); //animator.SetBool("BeginPrepare",action); //animator.SetBool("EndPrepare",!action); }