Exception: Cannot Serialize(): UnityEngine.GameObject
Options
so I really need all the players to save a GameObject in their lists
private void OnTriggerEnter2D(Collider2D other)
{
PV.RPC("ontriggerenter",PhotonTargets.AllBufferedViaServer, other.gameObject);
}
[PunRPC]
public void ontriggerenter(GameObject obj)
{
var script = obj.GetComponent<AiMovement>();
if (script.Owner == Owner)
return;
Enemies.Add(obj);
}
as this is neccesary i can't just take out something from it. I NEED THE SPECIFIC GAMEOBJECT! PLEASE HELP MEEEEEEEE I'M LOSING MA GOD DAMN MIIIIIIIIIIIIIIIIND
private void OnTriggerEnter2D(Collider2D other)
{
PV.RPC("ontriggerenter",PhotonTargets.AllBufferedViaServer, other.gameObject);
}
[PunRPC]
public void ontriggerenter(GameObject obj)
{
var script = obj.GetComponent<AiMovement>();
if (script.Owner == Owner)
return;
Enemies.Add(obj);
}
as this is neccesary i can't just take out something from it. I NEED THE SPECIFIC GAMEOBJECT! PLEASE HELP MEEEEEEEE I'M LOSING MA GOD DAMN MIIIIIIIIIIIIIIIIND
0