public void init() { Debug.Log ("Root created"); root = ScriptableObject.CreateInstance<SecuenceNode>(); Debug.Log (root); root.init (); DontDestroyOnLoad(this); }
public void init() { Debug.Log("Root created"); root = ScriptableObject.CreateInstance <SecuenceNode>(); Debug.Log(root); root.init(); DontDestroyOnLoad(this); }
public SecuenceNode addNewChild() { SecuenceNode node = ScriptableObject.CreateInstance <SecuenceNode>(); node.init(); this.childs.Add(node); return(node); }