summaryrefslogtreecommitdiff
path: root/ROUNDS/Photon.Pun.Simple.ContactGroups/ContactGroupAssign.cs
blob: 235f91fa6c7693e7b455ff5a89aa0039f6f20e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEngine;

namespace Photon.Pun.Simple.ContactGroups;

public class ContactGroupAssign : MonoBehaviour, IContactGroupsAssign, IContactGroupMask
{
	public ContactGroupMaskSelector contactGroups;

	[Tooltip("Will add a ContactGroupAssign to any children that have colliders and no ContactGroupAssign of their own. ")]
	[SerializeField]
	protected bool applyToChildren = true;

	public bool ApplyToChildren => applyToChildren;

	public int Mask => contactGroups.Mask;
}