//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(); }
public void Fix() { broken = false; Rigidbody2D.simulated = false; animator.SetTrigger("Fixed"); rubyController.ChangeScore(1); smokeEffect.Stop(); PlaySound(fixedsound); Instantiate(lootdrop, transform.position, Quaternion.identity); }
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); }
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); }
//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(); }
void Score() { rubyController.ChangeScore(1); }