Пример #1
0
    void Start()
    {
        worldErrorText = worldErrorPanel.GetComponentInChildren <Text>();
        DisableWorldError();

        TreeLoader._init();
        if (TreeLoader.CurrentTree != null)
        {
            TreeBuilder.Instance.BuildTree(TreeLoader.CurrentTree);
        }
        else //it's all gone horribly wrong - the newick parser has failed to parse the tree
        {
            GameManager.DebugLog("Tree loading failed");
            ShowWorldError(NewickParser.ErrorMessage);
        }
    }