Ejemplo n.º 1
0
        private void registerCameraRaycast()
        {
            CameraRaycast cameraRaycast = Camera.main.GetComponent <CameraRaycast>();

            cameraRaycast.mouseOverCellObservers += changeCurrentCellColorEntered;
            cameraRaycast.mouseExitCellObservers += changeCurrentCellColorExited;
        }
Ejemplo n.º 2
0
        private void registerCameraRaycast()
        {
            CameraRaycast cameraRaycast = Camera.main.GetComponent <CameraRaycast>();

            cameraRaycast.mouseOverCellObservers += updateOnCellEntered;
            cameraRaycast.mouseExitCellObservers += updateOnCellExit;
        }