示例#1
0
    void NotContact()
    {
        if (isContact)
        {
            go_TargetNameBar.gameObject.SetActive(false);
            isContact = false;
            Rotating rotating = SpinCoursor.GetComponent <Rotating>();
            rotating.Rotate(true);


            go_ActiveCrosshair.SetActive(false);
        }
    }
示例#2
0
    void Contact()
    {
        if (hitInfo.transform.CompareTag("Interaction") || hitInfo.transform.CompareTag("Character"))
        {
            go_TargetNameBar.SetActive(true);
            txt_targetName.text = hitInfo.transform.GetComponent <InteractionType>().GetName();
            Rotating rotating = SpinCoursor.GetComponent <Rotating>();
            rotating.Rotate(true);
            go_ActiveCrosshair.SetActive(true);



            if (!isContact)
            {
                isContact = true;
            }
        }
        else
        {
            NotContact();
        }
    }