Exemple #1
0
 void OnTriggerExit2D(Collider2D col)
 {
     if (col.gameObject.tag == "Margin")
     {
         Sprite         sc = Resources.Load <Sprite>("Sprites/marginNoColor");
         SpriteRenderer sr = col.gameObject.GetComponent <SpriteRenderer>();
         sr.sprite = sc;
         ui.setPontuating(true);
     }
 }