// Use this for initialization
 void Start()
 {
     exController     = new ExcavatorController();
     ArmAHinge        = ArmA.GetComponent <HingeJoint>();
     ArmBHinge        = ArmB.GetComponent <HingeJoint>();
     BucketHinge      = BucketMain.GetComponent <HingeJoint>();
     Base1Hinge       = Base1.GetComponent <HingeJoint>();
     rotateArmA       = 0f;
     rotateArmB       = 0f;
     rotateBucketMain = 0f;
     rotateBase1      = 0f;
     rotationSpeed    = 0.5f;
     driveMode        = false;
 }
Exemple #2
0
    private void Start()
    {
        ArmAHinge        = ArmA.GetComponent <HingeJoint>();
        ArmBHinge        = ArmB.GetComponent <HingeJoint>();
        BucketHinge      = BucketMain.GetComponent <HingeJoint>();
        Base1Hinge       = Base1.GetComponent <HingeJoint>();
        rotateArmA       = 0f;
        rotateArmB       = 0f;
        rotateBucketMain = 0f;
        rotateBase1      = 0f;

        GameObject exControllerScript = GameObject.Find("Excavator");

        driveController = exControllerScript.GetComponent <CarController>();

        _netMqListener = new NetMqListener(HandleMessage);
        _netMqListener.Start();
    }
    // Use this for initialization
    void Start()
    {
        ArmAHinge        = ArmA.GetComponent <HingeJoint>();
        ArmBHinge        = ArmB.GetComponent <HingeJoint>();
        BucketHinge      = BucketMain.GetComponent <HingeJoint>();
        Base1Hinge       = Base1.GetComponent <HingeJoint>();
        rotateArmA       = 0f;
        rotateArmB       = 0f;
        rotateBucketMain = 0f;
        rotateBase1      = 0f;

        GameObject clientScript = GameObject.Find("ExcavatorV2Simple");

        //pt = pipeThreadScript.GetComponent<PipeThreadingOnlyJoysticks>();
        co = clientScript.GetComponent <ClientObject>();
        GameObject exControllerScript = GameObject.Find("Excavator");

        driveController = exControllerScript.GetComponent <CarController>();
        xyArray         = new string[6];
    }