private void UpdateMouseOnOrOffScreen() { bool onScreen = InputUtil.IsMouseOnScreen(); if (onScreen != this.m_mouseOnScreen) { this.m_mouseOnScreen = onScreen; foreach (MouseOnOrOffScreenCallback callback in this.m_mouseOnOrOffScreenListeners.ToArray()) { callback(onScreen); } } }
private void Start() { this.m_mouseOnScreen = InputUtil.IsMouseOnScreen(); }