Example #1
0
    void LoseBasket()
    {
        // 获取对主摄像机的ApplePicker组件的引用
        ApplePicker apScript = Camera.main.GetComponent <ApplePicker>();

        // 调用apScript的BasketDestroyed方法,刚好也是消除最上面的那个篮筐
        apScript.BasketDestroyed();
    }