public RegisterWindow ( ModalWindow, window ) : void | ||
window | ModalWindow, | |
Результат | void |
// Use this for initialization protected virtual void Start() { windowManager = GameObject.Find("VoxWorld").GetComponent <ModalWindowManager>(); id = windowManager.windowManager.Count; if (!windowManager.windowManager.ContainsKey(id)) { windowManager.RegisterWindow(this); } else { Debug.Log("ModalWindow of id " + id + " already exists on this object!"); Destroy(this); } if (autoOpen) { Render = true; } }
// Use this for initialization protected virtual void Start() { windowManager = gameObject.GetComponent<ModalWindowManager> (); if (!windowManager.windowManager.ContainsKey (id)) { windowManager.RegisterWindow (this); } else { Debug.Log ("ModalWindow of id " + id.ToString () + "already exists on this object!"); Destroy(this); } }