// Public functions public void SetCurrentTrans(GameObject awareObject, GazeAwareComms comms) // Called from comms { stilLookedAt += 1; gazeTransform = awareObject.transform; gazeID = (gazeID + 1) % 100; latestResponders[gazeID] = comms; currentGazeTimer = Time.time; StartCoroutine(CheckTimer(gazeID)); } // Calls CheckTimer()
} // Calls ReenableComms() private IEnumerator ReenableComms(GazeAwareComms comms, float myTime) // Reenables comms after a delay { yield return(new WaitForSeconds(reenableDelay)); comms.Enable(); }