WolfPanel脚本
1.OnInitPanel函数添加
certainButton.onClick.Add(()=>{
controller.selectedIndex=2;
messageController.selectedIndex=2;
transition.Stop();
killTransition.Play(()=>{
killNumber.text=0.ToString();
AfterAction(UIPanelType.witchPanel);});});
2.HandleGameAction(UIPanelType currentGamePanelType){
if(currentGamePanelType==UIPanelType.WolfPanel){
ToCurrentPanel();transition.Play(-1,0,()=>{});
for((int i=0;i<contentPane.numChildren;i++){
for(int j=0;j<messageManager.deadPlayerNum.Count;j++)
{
if(contentPane.GetChildAt(i).group==numberButtons){GButton gButton=contentPane.GetChildAt(i).asButton;
if(gButton.title==messageManager.deadPlayerNum[j].ToString()){
gButton.grayed=true;gButton.touchable=false;}
}}}}}