void Awake()
{
Light2D light = transform.GetComponent<Light2D>();
Color prettyColor = new Color (255, 255, 255);
light.color=prettyColor;
}
light.color=prettyColor;
появляется ошибка(NullReferenceException: Object reference not set to an instance of an object