标签:
1 private Transform myTransform; 2 private Rigidbody myRigidbody; 3 void Start() 4 { 5 myTransform = transform; 6 myRigidbody = rigidbody; 7 }
1 void Update() 2 { 3 if(Time.frameCount % 50 == 0) 4 { 5 System.GC.Collection(); 6 } 7 }
1 //返回键 2 if(Application.platform == Runtimeplatform.Android 3 && Input.GetKeyDown(KeyCode.Escape)) 4 { 5 //... 6 } 7 8 //Home键 9 if(Application.platform == Runtimeplatform.Android 10 && Input.GetKeyDown(KeyCode.Home)) 11 { 12 //... 13 }
标签:
原文地址:http://www.cnblogs.com/suoluo/p/5259961.html