摘要:
屏幕旋转可以在引擎里设置:依次点开 Edit——Project Setting——Player 即可设置如图:接下来的是 雨松大神的 代码控制,本屌是安卓机器,没能测试。C#using UnityEngine;using System.Collections; public class Main :... 阅读全文
摘要:
unity 提供了PlayerPrefs这个类用于存储游戏数据到电脑硬盘中。 这个类有10个函数可以使用Class Functions类函数SetIntSets the value of the preference identified by key.设置由key确定的参数值。GetIntRetu... 阅读全文