void Start() { buttonsManager = GetComponentInParent <RPP_ButtonsPuzzleManager>(); spriteRenderer = GetComponent <SpriteRenderer>(); flashManager = GetComponentInChildren <JUB_FlashManager>(); spriteRenderer.sprite = boutonDésactivé; }
private void Start() { torchesManager = GetComponentInParent <RPP_ButtonsPuzzleManager>(); spriteRenderer = GetComponent <SpriteRenderer>(); flashManager = GetComponent <JUB_FlashManager>(); //wasUnlit.AddListener(UnlightEverything); if (!isLit) { spriteRenderer.sprite = unlitTorch; } else { spriteRenderer.sprite = litTorch; } }