protected virtual void Start() { image = GetComponent <Image>(); initial_color = new Color(0.5330188f, 0.548627f, 1f); connected_color = new Color(0.25f, 0.2752099f, 1f); node = GetComponentInParent <SMNode>(); }
// Start is called before the first frame update void Start() { node = transform.parent.GetComponent <SMNode>(); offset = .01f; output_image = GetComponent <Image>(); lr = GetComponent <LineRenderer>(); lr.startWidth = lr.endWidth = 0.1f; cam = Camera.main; }
public void SetNextFalse(SMNode n) { exec_false_next = n; if (n != null) { if (n.GetPrev() != this) { n.SetPrev(this); } } }
public void SetPrev(SMNode n) { /* * exec_prev = n; * if(n != null) * { * if (n.GetNext() != this) * { * n.SetNext(this); * } * }*/ }
public void UnlinkA() { input_a = null; }
public void LinkA(SMNode input) { input_a = input; }
public void Link(SMNode o) { Link(); node.SetPrev(o); }
public void UnlinkB() { input_b = null; }
public void LinkB(SMNode input) { input_b = input; }
// Start is called before the first frame update void Start() { //run from Start_start Start_start = GameObject.FindGameObjectWithTag("SMStart").GetComponent <SMNode>(); Update_start = GameObject.FindGameObjectWithTag("SMUpdate").GetComponent <SMNode>(); }