Exemplo n.º 1
0
    public void TriggerElectronJourney()
    {
        EPathNode firstNode = edges[0].start;
        Vector3   iniPos    = firstNode.transform.position;

        (GameObject go, Electron el)electron = PrefabUtils.InstantiatePrefab <Electron>(electronPrefab, null, iniPos, Quaternion.identity);
        electron.el.Initialize(edges);
    }