void AddScore(ref ScoreActions item) { switch (item) { case ScoreActions.bunnyKilled: _guiEntityView.scoreComponent.score += 10; break; case ScoreActions.bearKilled: _guiEntityView.scoreComponent.score += 20; break; case ScoreActions.HellephantKilled: _guiEntityView.scoreComponent.score += 30; break; } }
private void AddScore(ref ScoreActions item) { switch (item) { case ScoreActions.bunnyKilled: _guiNode.scoreComponent.score += 10; break; case ScoreActions.bearKilled: _guiNode.scoreComponent.score += 20; break; case ScoreActions.HellephantKilled: _guiNode.scoreComponent.score += 30; break; } }
private void inicializador() { rb = GetComponent <Rigidbody2D>(); age = 1; infarto = 0.5f; stress = 10; moveLeft = 0.5f; speed = initialSpeed = 1; jump = initialJump = 5; AgeChanger(1); ScoreActions.ResetaContador(); contadorFasesDavida = 0; setAudioPlayer(true, false, false, false, false); timerScore = 20; pAnimator = GetComponent <Animator>(); }