コード例 #1
0
ファイル: Apple.cs プロジェクト: Barlogov/UnityPC
    // Update is called once per frame
    void Update()
    {
        if (transform.position.y < bottomY)
        {
            Destroy(this.gameObject);

            ApplePicker apScript = Camera.main.GetComponent <ApplePicker>();
            apScript.AppleDestoyed();
        }
    }