This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private var v3Pos : Vector3; | |
private var threshold = 9; | |
function OnMouseDown() { | |
v3Pos = Input.mousePosition; | |
} | |
function OnMouseDrag() { | |
var v3 = Input.mousePosition - v3Pos; | |
v3.Normalize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://itunes.apple.com/rss/customerreviews/id=1038302242/sortby=mostrecent/json?l=en&&cc=cn | |
https://itunes.apple.com/rss/customerreviews/page=1/id=414478124/sortby=mostrecent/json?l=en&&cc=cn | |
替换id即可 | |
参考 https://www.zhihu.com/question/23945309 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class BackgroundRepeater : MonoBehaviour { | |
private Transform cameraTransform; | |
private float spriteWidth; | |
// Use this for initialization | |
void Start () { | |
cameraTransform = Camera.main.transform; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
也可以使用一条命令,直接打开文件写并覆写就会清空(注意,不能使用增加参数'a') | |
open(filename, 'w').close() |