Beispiel #1
0
            public override GeoCounter GetCounter()
            {
                if (editorCounter == null)
                {
                    editorCounter = GameObject.FindObjectOfType <E_GeoCounter_I>();
                    if (editorCounter == null)
                    {
                        var counterPrefab = EditorAssets.LoadEditorAsset <GameObject>("Geo Counter").GetComponent <E_GeoCounter_I>();


                        editorCounter = GameObject.Instantiate(counterPrefab, WeaverCanvas.Content);
                    }
                }
                return(editorCounter);
            }