Hello, I was trying to add Players in ArrayList to show them and hide other players.
Here is the code:
check players if their name contains in ArrayList or not
Here is the code:
Code (CSharp):
- private bool inGroup = false;
- private void FixedUpdate()
- {
- CheckMyPartyMembers();
- }
- if (Input.GetMouseButtonUp(0))
- {
- if (Partynames.Contains(this.playerName) == false)
- {
- Partynames.Add(this.playerName);
- Debug.Log("added " + this.playerName);
- inGroup = true;
- }...