// Singleton void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
// Start is called before the first frame update void Start() { magnetism = MagnetismEffect.instance; rb = GetComponent <Rigidbody>(); }
// Singleton void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
// Start is called before the first frame update void Start() { magnetism = MagnetismEffect.instance; rb = GetComponent <Rigidbody>(); }