Originally Posted by
butor20022
I was trying to learn how to do it myself. Managed to do the easy part (premium, no fight).
But for the ESP, I get errors when I try to recompile in PhotonDispatcher. I was trying to add the following lines:
Code:
if (GameFactory.FishSpawner != null)
{
foreach (IFishController fishController in GameFactory.FishSpawner.Fish.Values)
{
Vector3 vector = Camera.main.WorldToScreenPoint(fishController.Owner.transform.position);
Vector2 vector2;
vector2..ctor(vector.x, vector.y);
GUI.Label(new Rect(vector2.x - 50f, (float)Screen.height - vector2.y, 290f, 55f), fishController.Owner.name + " ");
}
but the vector2..ctor is causing an error (CS1001)
Here you go;
Code:
if (GameFactory.FishSpawner != null)
{
foreach (IFishController fishController in GameFactory.FishSpawner.Fish.Values)
{
Vector3 vector = Camera.main.WorldToScreenPoint(fishController.Owner.transform.position);
Vector2 vector2 = new Vector2(vector.x, vector.y);
GUI.Label(new Rect(vector2.x - 50f, (float)Screen.height - vector2.y, 290f, 55f), fishController.Owner.name + " ");
}
}
- - - Updated - - -
Originally Posted by
butor20022
I was trying to learn how to do it myself. Managed to do the easy part (premium, no fight).
You will also come across a problem when trying to edit the Reel Speed values. You will get compilation errors regarding
"The accessibility modifier of the X accessor must be more restrictive than the property of indexer Y"
To solve this, just delete the code before the getters and setters.
Code:
{
[global::System.Runtime.CompilerServices.CompilerGenerated]
protected get
{
return default(global::RodBehaviour);
}
[global::System.Runtime.CompilerServices.CompilerGenerated]
private set
{
}
}
Just remove the terms "protected" and "private" leaving just "get" and "set" wherever necessary. It will then compile.
Code:
{
[global::System.Runtime.CompilerServices.CompilerGenerated]
get
{
return default(global::RodBehaviour);
}
[global::System.Runtime.CompilerServices.CompilerGenerated]
set
{
}
}