Exemple #1
0
 public override void clicked()
 {
     if (type == ItemType.Health)
     {
         if (!p.addHP(value))
         {
             base.clicked();
             Destroy(gameObject);
         }
     }
     if (type == ItemType.Ink)
     {
         if (!p.addInk(value))
         {
             base.clicked();
             Destroy(gameObject);
         }
     }
 }