public virtual void Initialize(int id, Func <int, bool> isFocusedCallback) { if (this._initialized) { UnityEngine.Debug.LogError("Window is already initialized!"); return; } this._id = id; this._isFocusedCallback = isFocusedCallback; this._timer = new Window.Timer(); this._contentText = new List <Text>(); this._canvasGroup = base.GetComponent <CanvasGroup>(); this._initialized = true; }
public virtual void Initialize(int id, Func <int, bool> isFocusedCallback) { if (this._initialized) { Debug.LogError((object)"Window is already initialized!"); } else { this._id = id; this._isFocusedCallback = isFocusedCallback; this._timer = new Window.Timer(); this._contentText = new List <Text>(); this._canvasGroup = (CanvasGroup)((Component)this).GetComponent <CanvasGroup>(); this._initialized = true; } }
public virtual void Initialize(int id, Func<int, bool> isFocusedCallback) { if (this._initialized) { UnityEngine.Debug.LogError("Window is already initialized!"); return; } this._id = id; this._isFocusedCallback = isFocusedCallback; this._timer = new Window.Timer(); this._contentText = new List<Text>(); this._canvasGroup = base.GetComponent<CanvasGroup>(); this._initialized = true; }