private void Start() { this.index = 0; this.highScoreAnimator = base.GetComponent <Animator>(); this.highScore = PlayerPrefsManager.GetHighScore(); this.soundClipsContainer = UnityEngine.Object.FindObjectOfType <SoundClipsContainer>(); }
private void PlayGameOverSound() { SoundClipsContainer soundClipsContainer = UnityEngine.Object.FindObjectOfType <SoundClipsContainer>(); int musicIndex = (int)SoundClipsContainer.Sounds.GamerOver; Vector3 position = UnityEngine.Object.FindObjectOfType <Ball>().transform.position; soundClipsContainer.PlaySound(musicIndex, position); }
private void Start() { this.particleController = UnityEngine.Object.FindObjectOfType <ParticleController>(); this.thisRigidBody2d = base.GetComponent <Rigidbody2D>(); this.swipe = base.GetComponent <Swipe>(); this.soundClipsContainer = UnityEngine.Object.FindObjectOfType <SoundClipsContainer>(); this.isBallScriptStarted = true; this.IncreaseSpeed(); }