Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 2
0
 // 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;
 }
Exemplo n.º 3
0
 public void SetNextFalse(SMNode n)
 {
     exec_false_next = n;
     if (n != null)
     {
         if (n.GetPrev() != this)
         {
             n.SetPrev(this);
         }
     }
 }
Exemplo n.º 4
0
 public void SetPrev(SMNode n)
 {
     /*
      * exec_prev = n;
      * if(n != null)
      * {
      *  if (n.GetNext() != this)
      *  {
      *      n.SetNext(this);
      *  }
      * }*/
 }
Exemplo n.º 5
0
 public void UnlinkA()
 {
     input_a = null;
 }
Exemplo n.º 6
0
 public void LinkA(SMNode input)
 {
     input_a = input;
 }
Exemplo n.º 7
0
 public void Link(SMNode o)
 {
     Link();
     node.SetPrev(o);
 }
Exemplo n.º 8
0
 public void UnlinkB()
 {
     input_b = null;
 }
Exemplo n.º 9
0
 public void LinkB(SMNode input)
 {
     input_b = input;
 }
Exemplo n.º 10
0
 // 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>();
 }