예제 #1
0
    protected void OnNodeAdded(NodeData node)
    {
        if (node.Name == Constellation.ConstellationTypes.Tutorial.NAME)
        {
            ConstellationScript = ScriptDataService.ConvertCurrentConstellationToTutorial();
        }
        else if (node.Name == Constellation.ConstellationTypes.StaticConstellationNode.NAME)
        {
            ConstellationScript = ScriptDataService.ConvertToConstellationNodeScript();
        }

        if (Application.isPlaying && previousSelectedGameObject != null && ConstellationScript.IsInstance)
        {
            currentEditableConstellation.AddNode(node);
            ConstellationScript.IsDifferentThanSource = true;
        }
    }