SpringCollider.cs 484 B

12345678910111213141516171819202122232425
  1. //
  2. //SpringCollider for unity-chan!
  3. //
  4. //Original Script is here:
  5. //ricopin / SpringCollider.cs
  6. //Rocket Jump : http://rocketjump.skr.jp/unity3d/109/
  7. //https://twitter.com/ricopin416
  8. //
  9. using UnityEngine;
  10. using System.Collections;
  11. namespace UnityChan
  12. {
  13. public class SpringCollider : MonoBehaviour
  14. {
  15. //半径
  16. public float radius = 0.5f;
  17. private void OnDrawGizmosSelected ()
  18. {
  19. Gizmos.color = Color.green;
  20. Gizmos.DrawWireSphere (transform.position, radius);
  21. }
  22. }
  23. }