Exemple #1
0
    // for the script "ChangeMaterial", currently obsolete
    private void ChangeMaterialRelatedStuff()
    {
        ChangeMaterial changeMaterial = rayCastHit.transform.GetComponent <ChangeMaterial>();

        if (changeMaterial)
        {
            changeMaterial.DoSomeHighlightStuff();
        }
        else
        {
            Debug.Log("Change Material not found");
        }
    }