Beispiel #1
0
 // -----------------------------------------------------------------------------------------------------------------
 private void UpdateLevelGameplay(CTile t)
 {
     if (m_level_tags.IsTagSet(t, (int)CTile.ETag.T_APPLE))
     {
         if (!t.HasApple())
         {
             t.SetApple(apple.Instantiate(m_config.apple).gameObject);
         }
     }
     else
     {
         if (t.HasApple())
         {
             GameObject apple_obj = t.UnsetApple();
             m_config.apple.mesh.Destroy(apple_obj);
         }
     }
 }