예제 #1
0
    private void ControllerEvents_TriggerClicked(object sender, ControllerInteractionEventArgs e)
    {
        ImageDeactivator imageDeactivator = currentTarget.GetComponent <ImageDeactivator>();

        if (imageDeactivator != null)
        {
            currentTarget.GetComponent <ImageDeactivator>().Deactivate();
        }
        TV tv = currentTarget.GetComponent <TV>();

        if (tv != null)
        {
            Debug.Log("Tv hit");
            tv.Activate();
        }
    }