IncreaseScore() 공개 메소드

public IncreaseScore ( int amount ) : void
amount int
리턴 void
예제 #1
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player")
     {
         HudScript.IncreaseScore(-500);
         Destroy(this.gameObject);
     }
 }
예제 #2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if(other.tag == "Player"){
         hud = GameObject.Find("Main Camera").GetComponent<HudScript>();
         hud.IncreaseScore(5);
         Destroy(this.gameObject);
     }
 }
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player")
     {
         hud = GameObject.Find("Main Camera").GetComponent <HudScript>();
         hud.IncreaseScore(100);
         Destroy(this.gameObject);
     }
 }
예제 #4
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player")
     {
         HudScript.IncreaseScore(250);
         coinsCollected++;
         Destroy(this.gameObject);
         HudScript.getNextAnswer();
         //setCurrentImage(HudScript.getCurrentImageSprite());
     }
 }
예제 #5
0
    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.GetComponent <moosecontroller>() == null)
        {
            return;
        }

        HudScript.IncreaseScore(amount);
        powerUpSoundEffect.Play();
        powerUpParticleEffect.Play();
        Destroy(gameObject);
    }