private bool _showFps;
public bool ShowFps
{
get { return _showFps; }
set
{
_showFps = value;
GameObject.FindGameObjectWithTag("EnvironmentFps").GetComponent().FpsEnabled = value;
}
}
_showFps configured in the Start() from correct Object/component.
Why this Parameter doesn't show in the Inspector?
↧