示例#1
0
    public void showTextGlove()
    {
        RaycastHit detect;

        UnityEngine.Debug.Log("NamaGlove");
        if (Physics.Raycast(playerCamera.transform.position, playerCamera.transform.forward, out detect, range))
        {
            INTR_SarungTangan glove = detect.transform.GetComponent <INTR_SarungTangan>();
            if (glove != null)
            {
                oldSarungTangan = glove;
                glove.showNamaGlove();
            }
            else
            {
                oldSarungTangan.unshowNamaGlove();
            }
        }
    }