Example #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();
            }
        }
    }
Example #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();
            }
        }
    }