5323人加入学习
(3人评价)
Unity2D 棋牌游戏案例-狼人杀面杀APP(基于FairyGUI)

制作完成于2018年3月19日,基于Unity2017.2

价格 ¥ 291.00
该课程属于 Unity - A计划(永久有效期) 请加入后再学习

1.GameBasePanel脚本

在构造方法中,加入

messageManager=GameManager.Instance.messageManager;

if(uiPanelType==UIPanelType.DayNightPanel){isDayNightPanel=true;}

2.OnInitPanel方法

if(!isDayNightPanel){

openAnimCom,closeAnimCom,openEye,closeEye,certainButton获取

}

guideMessage,messageController,controller

3.public virtual void HandleGameAction(UIPanelType currentGamePanelType){}

4.public virtual void ToCurrentPanel()

{controller.selectedIndex=0;

messageController.selectedIndex=0;

openEye.visible=true;

closeEye.visible=false;

openEye.SetPlaySettings(1,16,1,1);

openEye.playing=true;

if(firstTimeInThisPanel)

{openEye.onPlayEnd.Add(()=>{controller.selectedIndex=1;messageController.selectedIndex=1;openEye.visible=false;})}

}

[展开全文]

授课教师

SiKi学院老师

课程特色

视频(97)
下载资料(1)

学员动态

哒哒哒123 加入学习
哄哄227 加入学习
CottonCandy 加入学习
LeaGem 加入学习
wskg 加入学习