public static InputManager getInstance()
{
if (!_instance)
{
GameObject newInstance;
newInstance = new GameObject("InputManager");
_instance = newInstance.AddComponent<InputManager>();
}
return _instance;
}
/// <summary> /// Checks if the textbox has gained focus /// </summary> protected virtual void checkFocus() { if (InputManager.getInstance().wasLeftButtonPressed()) { this.HasFocus = isActorOver(InputManager.getInstance().MousePosition); } }