private IEnumerator SwapMaterialAndJumpCoroutine() { Model.materials = new[] { HitMaterial }; _swordController.Jump(_swordController.GetStaticForceForHit()); yield return(new WaitForSeconds(hitAndSwapTime)); Model.materials = new[] { OriginalMaterial }; }
private void Update() { if (!IsActive) { return; } if (Input.GetMouseButtonDown(0)) { _swordController.Jump(); } }