示例#1
0
    public void SetCorrectPiecePos(GameObject _pieceObj, Vector3 _startPos, float _duration)
    {
        Piece   _piece      = _pieceObj.GetComponent <Piece>();
        Vector3 _correctPos = listAnswerForSample.Find(a => a.x == _piece.id);

        if (_correctPos != null)
        {
            _piece.AutoCorrectPiece(new Vector2(_correctPos.y, _correctPos.z), _startPos, _duration);
        }
    }