コード例 #1
0
 public void SetPosRandomRotation(Vector2 position)
 {
     transform.position = new Vector3(position.x, position.y, -2);
     angle = Random.Range(0f, 360f);
     transform.eulerAngles = new Vector3(0, 0, angle);
     rb.velocity           = new Vector2();
     flashTimer.Pause();
     hasReachedFloor = false;
 }