ModalWindow.Start C# (CSharp) Méthode

Start() protected méthode

protected Start ( ) : void
Résultat void
    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);
        }
    }