protected void Start() { m_mbMagnetic = MbMagnetic.MInstance; if (m_mbMagnetic != null) { GetComponent <Rigidbody>().constraints = RigidbodyConstraints.FreezeRotation; GetComponent <Rigidbody>().useGravity = false; } }
protected void Awake() { MInstance = this; }