コード例 #1
0
 private void ReceiveCreatProps(CreatPropsDto dto)
 {
     if (dto == null)
     {
         return;
     }
     Dispatch(AreaCode.GAME, GameEvent.GAME_CREAT_PROPS, dto);
 }
コード例 #2
0
ファイル: GameController.cs プロジェクト: TNTsama11/CubeWar
 /// <summary>
 /// 生成道具
 /// </summary>
 private void CreatProps(CreatPropsDto dto)
 {
     if (dto == null)
     {
         return;
     }
     RemoveAllProps();
     foreach (var item in dto.idPropsTypeDict)
     {
         GameObject go = ExcuteCreat(item.Value);
         idPropsDict.Add(item.Key, go);
     }
 }