示例#1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        EnemyContoller akFish = other.GetComponent <EnemyContoller>();

        if (akFish != null)
        {
            akFish.BeFooded();
            Destroy(this.gameObject);
        }
        Debug.Log("鱼饵陷阱");
    }