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