Exemple #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player")
        {
            Debug.Log(other.name);

            Debug.Log(hintData.hintName);
            Debug.Log(hintData.text);
            Debug.Log(hintData.isRepeatable);
            Debug.Log(hintData.hintImage);

            hintController.DisplayHintToScreen(hintData.hintName, hintData.text, hintData.isRepeatable, hintData.hintImage);

            inRangeOfObject = true;
        }
    }