ChangeLightPedestrian() public method

public ChangeLightPedestrian ( ) : void
return void
コード例 #1
0
        private bool IsPedestrianLightHovered(Rect myRect3, int segmentId, bool hoveredSegment, ManualSegmentLight segmentDict)
        {
            if (!myRect3.Contains(Event.current.mousePosition))
                return hoveredSegment;

            _hoveredButton[0] = segmentId;
            _hoveredButton[1] = 2;

            if (!Input.GetMouseButtonDown(0) || _uiClickedSegment)
                return true;
            _uiClickedSegment = true;

            if (!segmentDict.PedestrianEnabled)
            {
                segmentDict.ManualPedestrian();
            }
            else
            {
                segmentDict.ChangeLightPedestrian();
            }
            return true;
        }