Beispiel #1
0
 private void CaptureEnemy(params object[] parameters)
 {
     if (stateVariables.eatTargetEnemy.activeSelf)
     {
         clawTransform = parameters[0] as Transform;
         IEatable eatable = stateVariables.eatTargetEnemy.GetComponent <IEatable>();
         if (!eatable.IsNull())
         {
             eatable.ToggleColliders(false);
             eatable.EnableRagdoll();
             eatable.GrabObject(transform);
             stateVariables.eatTargetEnemy.transform.position = clawTransform.position;
             grabSpot = clawTransform.position;
         }
     }
     SFXManager.Instance.Play(stateVariables.ArmEnemyCaptureSFX, transform.position);
     //clawArmController.StartRetraction(stateVariables.clawRetractionTime);
 }