Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag(TagsObjectScript.PlayerTagsName))
     {
         //    Debug.Log("Found Player Has Been Tags ");
         aiSoilderCtrlScript.SetScoopScriptFunction(other.gameObject.GetComponent <ScoopScript>());
     }
 }
Example #2
0
    //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);
    }