コード例 #1
0
 protected void OnNodeAdded(NodeData node)
 {
     if (Application.isPlaying && previousSelectedGameObject != null)
     {
         currentEditableConstellation.AddNode(node);
     }
 }
コード例 #2
0
 protected void OnNodeAdded(NodeData node)
 {
     if (Application.isPlaying && previousSelectedGameObject != null)
     {
         currentEditableConstellation.AddNode(node);
         ConstellationScript.IsDifferentThanSource = true;
     }
 }
コード例 #3
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;
        }
    }