예제 #1
0
    public IEnumerator ImportFile(string path)
    {
        Tools.EnableRenderers(false, _renderers, _canvas);
        var www = new WWW(path);

        while (!www.isDone)
        {
            yield return(null);
        }
        Parser = DonutGraphParser.Load(www);
        FeedXMLdata();
        Tools.EnableRenderers(true, _renderers, _canvas);
        if (Application.isPlaying)
        {
            PlayMotion();
            yield break;
        }
        var dottedLines = FindObjectsOfType <DottedLine> ();

        foreach (var dottedLine in dottedLines)
        {
            dottedLine.WipeAmount = 1f;
        }
        SetSlicesFill(null);
    }
	public IEnumerator ImportFile (string path)
	{
		Tools.EnableRenderers (false, _renderers, _canvas);
		var www = new WWW (path);
		while (!www.isDone)
			yield return null;
		Parser = DonutGraphParser.Load (www);
		FeedXMLdata ();
		Tools.EnableRenderers (true, _renderers, _canvas);
		if (Application.isPlaying) {
			PlayMotion ();
			yield break;
		}
		var dottedLines = FindObjectsOfType<DottedLine> ();
		foreach (var dottedLine in dottedLines) {
			dottedLine.WipeAmount = 1f;
		}
		SetSlicesFill(null);
	}