示例#1
0
    void DoDamage(int damage, float x, float y, float z)
    {
        NavMeshController pl = transform.GetComponent <NavMeshController>();

        if (pl)
        {
            //Debug.Log("Have done Damage");
            Vector3 vct = new Vector3(x, y, z);
            pl.GetDamage(damage, vct);
        }
    }