/// <summary> /// 初期処理 /// </summary> void Awake() { _toggleSearch.onValueChanged.AddListener(isOn_ => { _isSearchMode = isOn_; }); _eventManager.Add <Utility.EventTouchPoint>(this, ev_ => { if (ev_.gameObject == null) { return; } if (ev_.intParam >= 0 && ev_.intParam < _scoreTileView.Length) { var scoreTileView = _scoreTileView[ev_.intParam]; SetNodeInfo(scoreTileView.Node); } var debugTile = ev_.gameObject.GetComponent <Builder.DebugTile>(); if (debugTile == null) { return; } // マップ走査モード if (!_isSearchMode) { return; } if (_firstTileData == null) { _firstTileData = debugTile; SetTileInfo(_firstSelected, _firstTileData); return; } if (_secondTileData == null) { _secondTileData = debugTile; SetTileInfo(_secondSelected, _secondTileData); ExectuteAsync().Forget(); } }); }
public void SetTileInfo(Text text, Builder.DebugTile tileData) { text.text = $"{tileData.Pos}"; }