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