Beispiel #1
0
 private void OnTriggerStay2D(Collider2D collision)
 {
     if (collision != null && (((1 << collision.gameObject.layer) & platformLayerMask) != 0))
     {
         plat = collision.GetComponent <Plataforma>();
         if (plat != null)
         {
             color  = plat.GetCodPlat();
             sprite = plat.GetSprite();
         }
     }
 }