Exemple #1
0
    IEnumerator CallAddPart()
    {
        //We do this because Showing the loading panel takes 1 frame
        uiManager.ShowLoadingPanel();
        yield return(0);

        if (GO == null)
        {
            GO = Resources.Load <GameObject>("Prefabs/Sensors/" + this.prefabName);
        }
        uiManager.AddPart(name, editorManager.AddPart(GO, name), scale);
        uiManager.HideLoadingPanel();
    }