private CharacterMotor control;
void Start ()
{
control = GetComponent<CharacterMotor>();
}
// Update is called once per frame
void Update ()
{
control.movement.maxForwardSpeed = 30;
}
Sorry this is c#… let me attempt javascript
var control : CharacterMotor;
start()
{
control.GetComponent(CharacterMotor); // Reference the Script were going to modify
}
update()
{
control.movement.maxForwardSpeed = 30; // The maxForwardSpeed variable is under movement. You can actually see this in the inspector as well.
}
Don’t trust me on the javascript but I think that is it.
Hello.
thanks but it is the same that i done. The problem is in CharacterMotor script that have privates and the variable that i modified can’t change in this way.