Hey,
Let’s say that i have some singleton classes, like this for example:
public class Player : MonoBehaviour
{
public static Player instance;
void Awake()
{
instance = this;
}
}
Is it fine to use Player.instance a lot in other scripts, or should cache it in a variable on start and use that instead?