private void Start() { gameManager = GetComponentInParent <MinigameManager2>(); lifes = new Lifes(Lifes); subscribeToEvents(); }
private void Start() { gameManager = GetComponentInParent <MinigameManager2>(); parallaxer = new Parallaxer( ObjectToParallax, SelectMovementPostion, ParallaxSpeed, CurrentCamera, gameManager.transform.position, transform); }