コード例 #1
0
    public void cedokAir()
    {
        RaycastHit detectBaldi;

        if (Physics.Raycast(playerCamera.transform.position, playerCamera.transform.forward, out detectBaldi, range))
        {
            INTR_Baldi baldi = detectBaldi.transform.GetComponent <INTR_Baldi>();
            if (baldi != null)
            {
                UnityEngine.Debug.Log("dah cedok");
                //baldi.cedokAir();
                //body.enabled = true;
                //cedok.cedok();
                kanan.cedok();
                //kanan.pointerCedok();
                ambilAir = true;
                air.showAir();

                //body.enabled = false;
                //kanan.stopTunduk();
                unShowArrowAir();
                showArrowProcess();

                not_full = false;
            }
        }
    }
コード例 #2
0
    public void showTextAir()
    {
        RaycastHit detect;

        UnityEngine.Debug.Log("TextAir");
        if (Physics.Raycast(playerCamera.transform.position, playerCamera.transform.forward, out detect, range))
        {
            INTR_Baldi baldi = detect.transform.GetComponent <INTR_Baldi>();
            if (baldi != null)
            {
                oldAir = baldi;
                baldi.showTextAir();
                nakAmbil = true;
            }
            else
            {
                oldAir.unshowTextAir();
            }
            //nakAmbil = false;
        }
    }