18 lines
316 B
C#
18 lines
316 B
C#
using UnityEngine;
|
|
|
|
public class OnPickedUpScript : MonoBehaviour
|
|
{
|
|
public void OnPickedUp(PickupItem item)
|
|
{
|
|
if (item.PickupIsMine)
|
|
{
|
|
Debug.Log("I picked up something. That's a score!");
|
|
PhotonNetwork.player.AddScore(1);
|
|
}
|
|
else
|
|
{
|
|
Debug.Log("Someone else picked up something. Lucky!");
|
|
}
|
|
}
|
|
}
|