摘要: usingUnityEngine;usingSystem.Collections;publicclassCameraController:MonoBehaviour{publicfloatbackgoundWidthInpixel;//UsethisforinitializationvoidStart(){floatbackgoundWidth=backgoundWidthInpixel/100;//100isthepixelstounitvaluefloatretio=(float)(Screen.width)/(float)(Screen.height);floatnewSize=bac. 阅读全文
posted @ 2014-03-19 15:27 火之梦魇 阅读(856) 评论(0) 推荐(0) 编辑