Esempio n. 1
0
 void HyperSpace()
 {
     RigidbodyExt.Reset(rb);
     transform.position = Viewport.GetRandomWorldPositionXY();
     transform.rotation = Quaternion.Euler(0, 0, Random.Range(1, 360));
     hyperAudio.Play();
 }
Esempio n. 2
0
 public void ResetRigidbody()
 {
     RigidbodyExt.Reset(GetComponent <Rigidbody>());
 }