20 lines
322 B
C#
20 lines
322 B
C#
using UnityEngine;
|
|
|
|
namespace Unity.Cinemachine.Samples
|
|
{
|
|
public class PlayerCounter : MonoBehaviour
|
|
{
|
|
public static int PlayerCount;
|
|
|
|
public void PlayerJoined()
|
|
{
|
|
PlayerCount++;
|
|
}
|
|
|
|
public void PlayerLeft()
|
|
{
|
|
PlayerCount--;
|
|
}
|
|
}
|
|
}
|