how to fix line code 19 it says The name 'DeactivateRagdoll' does not exist in the current context

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Enemy : MonoBehaviour
{
    Animator myAnim;

    List<Rigidbody> ragdollRigids;

    // Start is called before the first frame update
    void Start()
    {
        myAnim = GetComponent<Animator>();

        ragdollRigids = new List<Rigidbody>(transform.GetComponentsInChildren<Rigidbody>());
        ragdollRigids.Remove(GetComponent<Rigidbody>());

        DeactivateRagdoll();
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    void ActivateRagdoll()
    {
        myAnim.enabled = false;
        for(int i = 0; i <ragdollRigids.Count; i++) 
        {
            ragdollRigids*.useGravity = true;*

ragdollRigids*.isKinematic = false;*
}

void DeactivateRagdoll()
{
myAnim.enabled = true;
for(int i = 0; i <ragdollRigids.Count; i++)
{
ragdollRigids*.useGravity = false;*
ragdollRigids*.isKinematic = true;*
} } }

}

Hello.

The error is saying there is no function called DeactivateRagdoll().

If you look close, you put DeactivateRagdoll() inside ActivateRagdoll() …

Bye