/* ! * \brief Checks that two reactions have the same Degradation field values. * \param reaction The reaction that will be compared to 'this'. */ protected override bool PartialEquals(IReaction reaction) { Degradation degradation = reaction as Degradation; return((degradation != null) && base.PartialEquals(reaction) && (_degradationRate == degradation._degradationRate) && (_molName == degradation._molName)); }
private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player") && open) { Map map = FindObjectOfType <Map>(); SceneManager.UnloadSceneAsync(map.index + 1); if (SceneManager.sceneCountInBuildSettings > map.index + 2) { SceneManager.LoadScene(map.index + 2, new LoadSceneParameters(LoadSceneMode.Additive)); Degradation.Reset(); } else { Degradation.button.Opening(); } } }
//! Copy Constructor public Degradation(Degradation r) : base(r) { _degradationRate = r._degradationRate; _molName = r._molName; }
//! Copy Constructor public Degradation(Degradation r) : base(r) { _degradationRate = r._degradationRate; _molName = r._molName; }