private void Start() { //Debug.Log("ColoredGameObject.Start " + gameObject.name); _spriteRenderers = GetComponentsInChildren <SpriteRenderer>(); _spriteMeshInstances = GetComponentsInChildren <SpriteMeshInstance>(); _collider2D = GetComponent <Collider2D>(); _contactFilter2D = new ContactFilter2D(); _contactFilter2D.useTriggers = false; _contactFilter2D.useLayerMask = true; _previousColor = _color; SetColor(initialColor, false); if (managed) { _colorsManager.RegisterColoredGameObject(this); } }