private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag(TagsObjectScript.PlayerTagsName)) { // Debug.Log("Found Player Has Been Tags "); aiSoilderCtrlScript.SetScoopScriptFunction(other.gameObject.GetComponent <ScoopScript>()); } }
//Function : ATTACK Function //Method : This is the Function used To //Setting Attack Statement public void ATTACKFunction() { if (aiSoilderCtrlScript == null) { return; } aiSoilderCtrlScript.TakeDamageFunction(); aiSoilderCtrlScript.SetScoopScriptFunction(this); }