void OnTriggerEnter(Collider collision) {/* * if (whichScript == 1) AntScript.curHealth -= AntScript.damageCompatibilityChecker(false, collision.gameObject, AntScript.charType); * else if (whichScript == 2) DemigodScript.curHealth -= DemigodScript.damageCompatibilityChecker(false, collision.gameObject, DemigodScript.charType); * else if (whichScript == 3) MinotaurScript.curHealth -= MinotaurScript.damageCompatibilityChecker(false, collision.gameObject, MinotaurScript.charType); * else if (whichScript == 4) MedusaScript.curHealth -= MedusaScript.damageCompatibilityChecker(false, collision.gameObject, MedusaScript.charType); * else if (whichScript == 5) PlayerScript.curHealth -= PlayerScript.damageCompatibilityChecker(false, collision.gameObject); * else if (whichScript == 6) ChimeraScript.curHealth -= ChimeraScript.damageCompatibilityChecker(false, collision.gameObject, ChimeraScript.charType); * else if (whichScript == 7) CTFScript.curHealth -= CTFScript.damageCompatibilityChecker(false, collision.gameObject, CTFScript.charType);*/ if (!onPlayer) { AIScript.curHealth -= AIScript.damageCompatibilityChecker(false, collision.gameObject, AIScript.charType); } else { PlayerScript.curHealth -= PlayerScript.damageCompatibilityChecker(false, collision.gameObject); } }