//Public because we want to call it from elsewhere like the projectile script
 public void Fix()
 {
     broken = false;
     rigidbody2D.simulated = false;
     //optional if you added the fixed animation
     animator.SetTrigger("Fixed");
     rubyController.ChangeScore(1);
     smokeEffect.Stop();
 }
 public void Fix()
 {
     broken = false;
     Rigidbody2D.simulated = false;
     animator.SetTrigger("Fixed");
     rubyController.ChangeScore(1);
     smokeEffect.Stop();
     PlaySound(fixedsound);
 }
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        //animation code for fixed robot below
        animator.SetTrigger("Fixed");
        rubyController.ChangeScore(1);

        smokeEffect.Stop();
    }
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        animator.SetTrigger("Fixed");
        rubyController.ChangeScore(1);
        rubyController.SetCountText();

        smokeEffect.Stop();
    }
Esempio n. 5
0
    public void Fix()
    {
        broken = false;
        Rigidbody2D.simulated = false;
        animator.SetTrigger("Fixed");
        rubyController.ChangeScore(1);


        smokeEffect.Stop();
        PlaySound(fixedsound);
        Instantiate(lootdrop, transform.position, Quaternion.identity);
    }
Esempio n. 6
0
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        animator.SetTrigger("Fixed");

        smokeEffect.Stop();

        GameObject rubyControllerObject = GameObject.FindWithTag("RubyController");

        rubyController = rubyControllerObject.GetComponent <RubyController>();
        rubyController.ChangeScore(1);
    }
Esempio n. 7
0
    public void Fix()
    {
        rubyController.ChangeScore(1);
        broken = false;
        rigidbody2D.simulated = false;
        animator.SetTrigger("Fixed");
        musicSource.clip = fixmotion;
        musicSource.Play();
        musicSource.loop = false;

        smokeEffect.Stop();
        Destroy(smokeEffect.gameObject);
    }
Esempio n. 8
0
    //Public because we want to call it from elsewhere like the projectile script
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        //optional if you added the fixed animation
        animator.SetTrigger("Fixed");

        smokeEffect.Stop();

        RubyController rubyControllerObject = GameObject.FindWithTag("RubyController").GetComponent <RubyController>();

        rubyControllerObject.ChangeScore();
    }
Esempio n. 9
0
 void Score()
 {
     rubyController.ChangeScore(1);
 }