//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();
 }
コード例 #2
0
 public void Fix()
 {
     broken = false;
     Rigidbody2D.simulated = false;
     animator.SetTrigger("Fixed");
     rubyController.ChangeScore(1);
     smokeEffect.Stop();
     PlaySound(fixedsound);
 }
コード例 #3
0
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        //animation code for fixed robot below
        animator.SetTrigger("Fixed");
        rubyController.ChangeScore(1);

        smokeEffect.Stop();
    }
コード例 #4
0
    public void Fix()
    {
        broken = false;
        rigidbody2D.simulated = false;
        animator.SetTrigger("Fixed");
        rubyController.ChangeScore(1);
        rubyController.SetCountText();

        smokeEffect.Stop();
    }
コード例 #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);
    }
コード例 #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);
    }
コード例 #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);
    }
コード例 #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();
    }
コード例 #9
0
 void Score()
 {
     rubyController.ChangeScore(1);
 }