
C#
文章平均质量分 67
CC_meng
这个作者很懒,什么都没留下…
展开
-
c#循环语句
1、for 循环。我们还是以示例来讲解。using System;using System.Windows;namespace gosoa.com.cn{class MyFirstClass{static void Main(){for(int i=0;i{Console.WriteLine(i);}}}}我们来看示例中的,for原创 2015-03-01 19:57:23 · 553 阅读 · 0 评论 -
C#数据结构,集合
C#数据结构,集合一、集合的基本概念在.NET 中,对于数据结构的支持,即把许多类似的对象组合起来。最简单的数据结构就是数组。集合表示一组可以通过遍历每个元素来访问的的一组对象,特别是可以使用foreach 循环来访问他们。 对象如果可以提供相关对象的引用,就是一个集合。称为使用foreach 循环是集合的主要目的,集合没有提供其他特性。二、数组列表。数组列表类似数原创 2015-03-01 19:58:43 · 390 阅读 · 0 评论 -
Untiy-->C# 冒泡排序与不用第三个变量实现排序
using UnityEngine;using System.Collections;public class pppp : MonoBehaviour { public int[] a = {2,3,1,4,6,7,8,9,0}; // Use this for initialization void Start () { for(int j=0;j<a.Length;j++){原创 2015-03-05 09:10:12 · 853 阅读 · 0 评论 -
Unity Http短连接
//需要发送的消息协议 WWW www_instance = new WWW(url, message); //时间函数单位毫秒 Stopwatch sw = new Stopwatch(); sw.Start(); byte[] ty = ne原创 2016-08-31 10:50:48 · 1672 阅读 · 0 评论 -
Unity C#根据路径读取图片并转换成byte
/// /// 根据路径读取图片并转换成byte /// /// /// public static byte[] ReadPNG(string path) { FileStream fileStream = new FileStream(path, FileMode.O原创 2016-08-31 10:58:39 · 4997 阅读 · 1 评论 -
C# 解压缩.zip文件
#region 解压缩文件 /// /// 解压缩文件 /// /// 压缩包文件名 /// 解压缩目标路径 public static void Decompress(string GzipFile, string targetPath) {原创 2016-09-12 13:51:40 · 572 阅读 · 0 评论 -
C# Unity WWW下载AssetBundle的。zip文件并解压到本地
#region WWW下载AssetBundle的资源 /// /// WWW下载AssetBundle的资源 /// /// /// public static bool UWWWLoad(string url) { try {原创 2016-09-12 13:58:00 · 3105 阅读 · 0 评论 -
C# Unity用AssetBundle加载本地资源 (1)
/// /// AssetBundle加载器 /// public class AssetBundleLoger { /// /// 更新文件下载目录 /// private const string StreamingAssetPath = "/StreamingAssets原创 2016-09-12 14:00:31 · 2072 阅读 · 0 评论 -
Unity AssetBundles打包
using System.IO;using UnityEditor;using UnityEngine;public class BuildAssetBundlesFromDirectoryALL{ [MenuItem("Assets/Create AssetBunldes ALL")] static void CreateAssetBunldesALL原创 2016-09-21 19:20:50 · 643 阅读 · 0 评论