void Start() { originPos = transform.localPosition; if (_instance == null) { _instance = this; } }
void Update() { if (shaketime == 0) { return; } timer += Time.deltaTime; if (timer >= shaketime && once == false) { once = true; Camerashake.instance().Startshake(); } }