コード例 #1
0
 private void Start()
 {
     this.index               = 0;
     this.highScoreAnimator   = base.GetComponent <Animator>();
     this.highScore           = PlayerPrefsManager.GetHighScore();
     this.soundClipsContainer = UnityEngine.Object.FindObjectOfType <SoundClipsContainer>();
 }
コード例 #2
0
ファイル: GameOver.cs プロジェクト: NakulSingh30/Tap-It-Up
    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);
    }
コード例 #3
0
ファイル: Ball.cs プロジェクト: NakulSingh30/Tap-It-Up
 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();
 }