Ejemplo n.º 1
0
    public void OnEndDoc()
    {
        parrentDef = doe.defPanel;
        parrentDoc = doe.docPanel;

        RefreshController.R_Defc(parrentDef);
        RefreshController.R_Doc(parrentDoc);

        CancelInvoke("StartTickDoc");

        Destroy(this.gameObject);

        if (MainResourcesController.docDefInProgress.Count > 1)
        {
            if (GameObject.Find("DocDef").gameObject.activeInHierarchy)
            {
                doe = GameObject.Find("DocDef").GetComponent <DocOnEnabled>();
                doe.StartThis();
            }
        }
    }
Ejemplo n.º 2
0
    public void OnEndDoc()
    {
        parrentDef = doe.defPanel;
        parrentDoc = doe.docPanel;

        RefreshController.R_Defc(parrentDef);
        RefreshController.R_Doc(parrentDoc);

        CancelInvoke("StartTickDoc");

        Destroy(this.gameObject);

        if (MainResourcesController.docDefInProgress.Count > 1)
        {
            if (GameObject.Find("DocDef").gameObject.activeInHierarchy)
            {
                doe = GameObject.Find("DocDef").GetComponent<DocOnEnabled>();
                doe.StartThis();
            }
        }
    }