public void Destroy() { MagnetHandler.DeRegisterMagnet(this); Destroy(gameObject); }
public void Create(MagnetType type, float force) { this.type = type; GetComponent <Rigidbody>().AddRelativeForce(Vector3.forward * force); MagnetHandler.RegisterMagnet(this); }
public void Create(MagnetType type, float force) { MagnetHandler.RegisterMagnet(this); }