Hi everyone,
I am making a multipleyer system and when I declare the public override void function `OnRoomListUpdate (List roomList)`
I'm having an error. Type 'MonoBehaviourPunCallbacks' already defines a member called 'OnRoomListUpdate' with the same parameter types
I created a script called RoomListingsMenu and the problem is in the PunClasses script.
How to fix this error?
RoomListingsMenu
using Photon.Pun;
using Photon.Realtime;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RoomListingsMenu : MonoBehaviourPunCallbacks
{
[SerializeField]
private Transform _content;
[SerializeField]
private RoomListing _roomListing;
public override void OnRoomListUpdate(List roomList)
{
foreach(RoomInfo info in roomList)
{
RoomListing listing = Instantiate(_roomListing, _content);
if (listing != null)
listing.SetRoomInfo(info);
}
}
}
PunClasses error
public void OnRoomListUpdate(List roomList)
{
throw new NotImplementedException();
}
↧