Unity MonoBehaviour and Photon Confusion

I don't know how to program, but I'm trying to get an old Unity mobile game to run that seems to have used aspects of Photon.
using UnityEngine;

namespace Photon
{
public class MonoBehaviour : MonoBehaviour
{
}
}
using UnityEngine;

namespace Photon
{
public class MonoBehaviour : MonoBehaviour
{
}
}
This seems to be where most of the errors are coming from, and it's effecting code like:
using Photon;
using UnityEngine;

public class ShowInfoOfPlayer : MonoBehaviour
{
public float CharacterSize;
public Font font;
public bool DisableOnOwnObjects;
}
using Photon;
using UnityEngine;

public class ShowInfoOfPlayer : MonoBehaviour
{
public float CharacterSize;
public Font font;
public bool DisableOnOwnObjects;
}
Everything is either a Circular Base Class Dependency issue or an Ambiguous Reference in the monobehaviours.
8 Replies
Black in Italian
Black in ItalianOP9mo ago
is there a way I can edit the first one to specify that MonoBehaviour calls for PhotonMonoBehaviour? again I have NO programming knowledge
mtreit
mtreit9mo ago
If you have no programming knowledge at all this seems like a non-starter of a conversation. Go through a basic tutorial like $helloworld first
mtreit
mtreit9mo ago
Then when you know the basics of C#, come back to Unity.
Black in Italian
Black in ItalianOP9mo ago
hm I will probably not do this
ophura
ophura9mo ago
why?
mtreit
mtreit9mo ago
public class MonoBehaviour : MonoBehaviour
public class MonoBehaviour : MonoBehaviour
If you write this but have no idea what it does or why it's a circular reference, you're not going to make any progress.
Black in Italian
Black in ItalianOP9mo ago
I did not write this, sorry I have limited time, I still have to do my homework for classes and study my foreign language I will just do the things I can feasibly do, like try turning every MonoBehaviour into a PhotonMonoBehaviour and see what happens
Want results from more Discord servers?
Add your server