Esempio n. 1
0
    private void gazeLeftObject(GameObject newObject)
    {
        if (objectPerformingActionOn == null || newObject == null)
        {
            setFloatingTextActive(false);
            //Debug.Log("False from line 173");
        }

        if (hasPerformedActionOnObject && prevGameObjectHit != null && newObject != null)
        {
            setAssistantPlaying(prevGameObjectHit, false);

            MediaDisplay mediaDisplay = prevGameObjectHit.GetComponentInChildren <MediaDisplay>();
            if (mediaDisplay != null)
            {
                mediaDisplay.stopAction();
            }
//            prevGameObjectHit = null;
        }

        timeGazing = 0;
//        if (gameObjectHit != null) {
//            prevGameObjectHit = gameObjectHit;
//        }
        gameObjectHit = null;
        radialProgressBarFill.fillAmount = 0;
    }
Esempio n. 2
0
    public void stopAction()
    {
        if (prevGameObjectHit != null)
        {
            setAssistantPlaying(prevGameObjectHit, false);

            MediaDisplay mediaDisplay = prevGameObjectHit.GetComponentInChildren <MediaDisplay>();
            if (mediaDisplay != null)
            {
                mediaDisplay.stopAction();
            }
            prevGameObjectHit = null;
        }

        timeGazing = 0;
//        gameObjectHit = null;
        radialProgressBarFill.fillAmount = 0;
    }