public void OnUseTool(ToolManager.ToolType toolType) { switch (toolType) { case ToolManager.ToolType.Filler: ToolManager.Instance.PrepareTool(true); break; } }
public void OnUseTool(ToolManager.ToolType toolType) { if (toolType == ToolManager.ToolType.Scraper) { gameObject.SetActive(false); } else if (toolType == ToolManager.ToolType.Waterer) { gameObject.SetActive(false); } }
public void OnUseTool(ToolManager.ToolType toolType) { switch (toolType) { case ToolManager.ToolType.Drill: BloodSpurtParticle.transform.position = ToolManager.Instance.transform.position; BloodSpurtParticle.Play(); DoOuchie(); break; } }
public void HideSelectedTool(ToolManager.ToolType selectedToolType) { foreach (var t in Tools) { t.GetComponentInChildren <SpriteRenderer>().enabled = true; } if (selectedToolType == ToolManager.ToolType.Hand) { return; } var tool = Tools[(int)selectedToolType - 1]; tool.GetComponentInChildren <SpriteRenderer>().enabled = false; }
public void OnUseTool(ToolManager.ToolType toolType) { if (allowChangeTool == false) { return; } if (toolType == ToolType) // drop tool { ToolManager.Instance.SetTool(ToolManager.ToolType.Hand); return; } allowChangeTool = false; ToolManager.Instance.SetTool(ToolType); StartCoroutine(SetAllowChangeTool()); }
public void OnUseTool(ToolManager.ToolType toolType) { switch (toolType) { case ToolManager.ToolType.Vacuum: if (level == SalivaLevel.None) { break; } salivaSuctionTimer += Time.deltaTime * 5f; salivaTimer = 0f; if (salivaSuctionTimer >= SuctionEffectInterval) { SetLevel(level - 1); salivaSuctionTimer = 0f; } break; case ToolManager.ToolType.Waterer: salivaTimer += Time.deltaTime * 5f; break; } }
public void OnUseTool(ToolManager.ToolType toolType) { //Animator.SetTrigger(toolType + "_Use"); }
public void OnUseTool(ToolManager.ToolType toolType) { Hurt(); }
public void OnUseTool(ToolManager.ToolType toolType) { switch (toolType) { case ToolManager.ToolType.Hand: if (toothCondition != ToothCondition.Healthy) { Face.Instance.DoOuchie(); Screenshake.Instance.ScreenShake(0.1f, 0.025f); Animator.SetTrigger("Hit"); } break; case ToolManager.ToolType.Drill: if (toothCondition == ToothCondition.Broken) { return; } if (!numb) { Face.Instance.DoOuchie(true); Screenshake.Instance.ScreenShake(0.01f, 0.1f); Animator.SetTrigger("Hit"); } else { Screenshake.Instance.ScreenShake(0.01f, 0.02f); } if (ToohSpurtParticle.isPlaying == false) { ToohSpurtParticle.Play(); } toothShatteredTimeCounter += Time.deltaTime; if (toothShatteredTimeCounter >= ToothShatteredTime) { toothShatteredTimeCounter = 0f; OnDrillTooth(); } break; case ToolManager.ToolType.Filler: if (toothCondition != ToothCondition.Cracked) { return; } if (ToolManager.Instance.IsToolPrepared() == false) { return; } SetToothCondition(ToothCondition.Filled); ToolManager.Instance.PrepareTool(false); break; case ToolManager.ToolType.Mirror: if (numb) { return; } Face.Instance.DoOuchie(); Animator.SetTrigger("Hit"); break; case ToolManager.ToolType.Scraper: if (numb) { return; } Face.Instance.DoOuchie(); Screenshake.Instance.ScreenShake(0.1f, 0.025f); Animator.SetTrigger("Hit"); break; case ToolManager.ToolType.Syringe: if (numb) { return; } Face.Instance.DoOuchie(); Screenshake.Instance.ScreenShake(0.1f, 0.025f); Animator.SetTrigger("Hit"); numb = true; break; } }