private void OnEnable() { if (openingObject == null) { gameObject.SetActive(false); return; } if (openingObject.TryGetComponent <CrayonSprayCan>(out var cr) && cr.IsCan == false) { colourDropDown.SetActive(false); }
private void OnEnable() { if (openingObject == null) { gameObject.SetActive(false); return; } if (openingObject.TryGetComponent <CrayonSprayCan>(out var cr) && cr.IsCan == false) { colourDropDown.SetActive(false); }