Example #1
0
 private void playBreakSFX()
 {
     AudioSource.PlayClipAtPoint(breakSound, Camera.main.transform.position, 0.45f);
     //Debug.Log("coords: " + gameObject.transform.position);
     Destroy(gameObject);
     addScore.AddToScore();
 }
    // Update is called once per frame
    void Update()
    {
        if (!stopped)
        {
            horizontalThrow = CrossPlatformInputManager.GetAxis("Horizontal");
            verticalThrow   = CrossPlatformInputManager.GetAxis("Vertical");
            ProcessTranslation();
            ProcessRotation();
            ProcessFiring();
        }

        scoreboard.AddToScore(1);
    }