Check out example codes for "how do antibodies worrk". It will help you in understanding the concepts better.

Code Example 1

// Meant for use with Unity
// Not even sure if this works
// I have no idea what I'm doing
using UnityEngine;
using System.Collections;
public class ImmuneSystem : MonoBehaviour
{
	public void ProtectBody(Disease disease)
	{
		if(disease.antiBody)
    	{
    		disease.Cure();
    	}
  			else
    	{
    		StartCoroutine(CreateAntibody(disease, disease.strength))
    	}
	}
    public IEnumerator CreateAntibody(Disease disease, int power)
    {
    	for(int i = 0; i >= power; i++)
        {
        	yield return new WaitForSeconds(1f);
        	return;
        }
        disease.antiBody = true;
    }
    public void Vaccine(Disease disease)
    {
    	StartCoroutine(CreateAntibody(disease, 0));
    }
}

Learn ReactJs, React Native from akashmittal.com