Ejemplo n.º 1
0
        private IEnumerator SwapMaterialAndJumpCoroutine()
        {
            Model.materials = new[] { HitMaterial };
            _swordController.Jump(_swordController.GetStaticForceForHit());
            yield return(new WaitForSeconds(hitAndSwapTime));

            Model.materials = new[] { OriginalMaterial };
        }
Ejemplo n.º 2
0
 private void Update()
 {
     if (!IsActive)
     {
         return;
     }
     if (Input.GetMouseButtonDown(0))
     {
         _swordController.Jump();
     }
 }