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.

20 lines
400 B

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