This commit is contained in:
AliIbnAbiTalib
2023-04-03 21:20:38 +02:00
parent 658d73df56
commit 8c81a72bb8
2 changed files with 2 additions and 3 deletions
@@ -357,7 +357,6 @@ public class PlayablePlayer : Player
activeItem = items[index].type;
imageCurrentItem.sprite = items[index].sprite;
imageCurrentItem.color = new Color(1, 1, 1, 1);
items[index] = null;
itemInfoImages[index].color = new Color(0, 0, 0, 0);
client.SendActiveItem((byte)index);
if (items[index].type == Item.Type.Trap)
@@ -367,5 +366,6 @@ public class PlayablePlayer : Player
temp.transform.position = currentField.transform.position + (Vector3.up / 2);
activeItem = Item.Type.None;
}
items[index] = null;
}
}
+1 -2
View File
@@ -106,7 +106,6 @@ public abstract class Player : MonoBehaviour
imageCurrentItem.sprite = items[index].sprite;
imageCurrentItem.color = new Color(1, 1, 1, 1);
itemInfoImages[index].color = new Color(0, 0, 0, 0);
items[index] = null;
if (items[index].type == Item.Type.Trap)
{
currentField.placedItem = items[index];
@@ -114,7 +113,7 @@ public abstract class Player : MonoBehaviour
temp.transform.position = currentField.transform.position + (Vector3.up / 2);
activeItem = Item.Type.None;
}
items[index] = null;
}
public void OnTriggerEnter(Collider c)