Esempio n. 1
0
 void Start()
 {
     buttonsManager        = GetComponentInParent <RPP_ButtonsPuzzleManager>();
     spriteRenderer        = GetComponent <SpriteRenderer>();
     flashManager          = GetComponentInChildren <JUB_FlashManager>();
     spriteRenderer.sprite = boutonDésactivé;
 }
Esempio n. 2
0
    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;
        }
    }