public void Main(string argument, UpdateType updateSource) { if (Me.CustomData == FirstWeaponlack) { DriveEntity.RArm.myMotor1.MyMotor.CustomData = "1,-5,20"; DriveEntity.RArm.myMotor2.MyMotor.CustomData = "1,-2,20"; DriveEntity.RArm.myMotor3.MyMotor.CustomData = "1,0,20"; } else if (Me.CustomData == Standstr) { DriveEntity.RArm.myMotor1.MyMotor.CustomData = "1,0,20"; DriveEntity.RArm.myMotor2.MyMotor.CustomData = "1,5,20"; DriveEntity.RArm.myMotor3.MyMotor.CustomData = "1,0,20"; } else if (Me.CustomData == SecondWeaponlack) { DriveEntity = new Arm1Class(Arm1, Arm2); } //else if (Me.CustomData == SecondWeaponlack) //{ // DriveEntity = new Arm2Class(Arm1, Arm2); //} else //if(Me.CustomData == Shootstr) { DriveEntity.AimTarget_sensor(mySensor); } DriveEntity.Drive(); }