You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
336 B

  1. using UnityEngine;
  2. public class LogicCollectable_Multiplayer : Collectable
  3. {
  4. [SerializeField]
  5. public Inventory.Data Collectable;
  6. public override void OnCollect (Character character)
  7. {
  8. character.Inventory.Add(Collectable);
  9. Destroy (gameObject);
  10. //send the message to the mobile of what block it picked up
  11. }
  12. }