Inspector doesn't get updated.

Hi,

I have a base class called BaseBomb and a derived class called BombBlack. I defined some variables in the base class so derived ones can use them as well, such as speed, in the Start of it and it shows fine in the inspector when I attach the derived script to an object.

Problem is, when I change the default value of a member variable of the base class, which is set in the Start method, the new value doesn’t show up in the inspector and I have to remove the script and re-attach it in order to see it.

I suspect that I’m not editing the default values where I should’ve.

Here are my scripts in case I’m doing something wrong:

using UnityEngine;
using System.Collections;

public class BaseBomb : MonoBehaviour
{
	public bool IsInsideTrigger = false;
	public float speed = 99.0F;
    public float jumpSpeed = 8.0F;
    //public float gravity = 20.0F;
	
	protected Vector3 moveDirection = Vector3.zero;
	
	// Use this for initialization
	virtual protected void Start ()
	{
		
	}
	
	// Update is called once per frame
	virtual protected void Update ()
	{
		CharacterController controller = GetComponent<CharacterController>();
        
		//if (controller.isGrounded)
		//{
            moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
            moveDirection = transform.TransformDirection(moveDirection);
            moveDirection *= speed;
            
			if (Input.GetButton("Jump"))
                moveDirection.y = jumpSpeed;
            
        //}
        //moveDirection.y -= gravity * Time.deltaTime;
        controller.Move(moveDirection * Time.deltaTime);
	}
}

using UnityEngine;
using System.Collections;

public class BombBlack : BaseBomb
{

	// Use this for initialization
	protected override void Start ()
	{
		base.Start();
	}
	
	// Update is called once per frame
	protected override void Update ()
	{
		base.Update();
	}
	
	void OnTriggerEnter(Collider other)
	{
        IsInsideTrigger = true;
    }
}

Click the arrow next to the script and select ‘reset’. This will update the values.