상속: IReaction
예제 #1
0
    /* !
     * \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));
    }
예제 #2
0
 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();
         }
     }
 }
예제 #3
0
 //! Copy Constructor
 public Degradation(Degradation r) : base(r)
 {
   _degradationRate = r._degradationRate;
   _molName = r._molName;
 }
예제 #4
0
 //! Copy Constructor
 public Degradation(Degradation r) : base(r)
 {
     _degradationRate = r._degradationRate;
     _molName         = r._molName;
 }