Why the object is not reduced in size in 2 times?
public class NewBehaviourScript : MonoBehaviour
public GameObject obj;
obj.transform.localScale = new Vector3(transform.localScale.x / 2f,
transform.localScale.y / 2f, transform.localScale.z / 2f);
If you create another script for this object, everything works great.
And this script is attached to the light, but to the obj bound the cube