Example #1
0
 public void StartRobot(HelpingHand.moves_struct[] arr, int flag)
 {
     move_arr = arr;
     moves_ct = move_arr.Length;
     Debug.Log("MoveNum " + moves_ct);
     this.flag        = flag;
     robot_controller = GameObject.Find("ROBOT_CONTROL");
     kine_func        = (myKinematics)robot_controller.GetComponent(typeof(myKinematics));
     start_time       = Mathf.CeilToInt(Time.time);
     robot            = true;
 }
Example #2
0
    public void kine_stopper()
    {
        GameObject   GO           = GameObject.Find("scriptHolder");
        GameObject   GO2          = GameObject.Find("ROBOT_CONTROL");
        myKinematics my_kine_call = GO2.GetComponent <myKinematics> ();

        my_kine_call.StopKinematics();
        KinematicsCall kine_call = GO.GetComponent <KinematicsCall> ();

        kine_call.StartRobot(moves_list, prev_ExecuteFlag);
    }