摘要:
using UnityEngine;using System.Collections; public class GameLoad : MonoBehaviour { public GameObject magicianPrefab; public GameObject swordmanPrefab 阅读全文
摘要:
using UnityEngine;using System.Collections; public class CharacterCreation : MonoBehaviour { public GameObject[] characterPrefabs; public UIInput name 阅读全文
摘要:
using UnityEngine;using System.Collections;using UnityEditor;/// <summary>/// 本脚本用来打包场景/// </summary>public class Assetbundle : MonoBehaviour{ //分开打包 阅读全文
摘要:
已知有一个XML文件(bookstore.xml)如下: <?xml version="1.0" encoding="gb2312"?> Oberon's Legacy Corets, Eva 5.95 1、往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument 阅读全文
摘要:
如果你是在IOS平台,强烈建议把PlayerSetting里面的Script Call Optimization设置成Slow and Safe,这样比如遇到空指针 或者 数组越界这样的错误,程序是不会直接闪退的。(Android上不用设置)这里我创造一个数组越界的错误。 void Start () 阅读全文
摘要:
xml <Image> <Resourses name="image" url="aaaaaa" > <Image1>image1|http://192.168.0.98/MyItems/TankCard/Image1.jpg</Image1> </Resourses></Image> using 阅读全文
摘要:
//从服务器下载IMG资源 private IEnumerator DownLoadToLocalIMG(string url, string strname) { Debug.Log("从服务器下载资源img:" + strname); //url编码 WWW.EscapeURL(url); // 阅读全文
摘要:
using UnityEngine;using System.Collections;using System.Collections.Generic;using System.Xml;using UnityEngine.UI;using System.IO;using System.Text;pu 阅读全文
摘要:
创建数据库1、新建连接(连接名,数据库路径和文件名) ddl (结构定义 CREATE ALTER DROP)dml(数据操作 INSERT DELETE UPDATE SELECT) 创建表create table修改表alter table —删除表DROP table t_cjb --插入数据 阅读全文
摘要:
using UnityEngine;using System.Collections;using System.IO;/// <summary>/// Move file./// 移动文件,/// </summary>public class MoveFile : MonoBehaviour { / 阅读全文